Engineering Homework Help
Hello,ok so im studying for my exam before class tomorrow and im wondering if you could answer a couple of
Hello,
ok so im studying for my exam before class tomorrow and im wondering if you could answer a couple of
question for clarity.
the first question is
srand((unsigned)time(NULL));
dice1 = LOWERBOUND + rand() % (UPPERBOUND – LOWERBOUND + 1);
-im saying that dice1 would be equal a number between Lowerbound and upperbound including the end points.
My second question is what is the purpose of a function?
is it to have a parameters or is it more to be reused, return a value, and have a parameters?
My book and the online community is confusing me. please help