What value is stored in *leaf in the program given below?
int *myfunc(int tree) {
int *node;
int i=rand();
if(0==tree/pow(2,i))
node=&tree;
else
node=&i;
return node;
}
int main(int argc, char * argv[]) {
int *leaf;
leaf=myfunc(7);
}
Reveal answer
Fill a bubble to check yourself