if i have a function that uses the rand()
function as its initialization value, would that value be found when the program compiles, or when the function is run?
say:
int function(int init = rand()){
return init;
}
if it is found at compile time, how can i get the initialization to be dynamic? i guess i would use NULL
as the initialization value, but how would i tell the difference between NULL
and init = 0
?