In: Computer Science
Trace the execution of my_recursive_function(100) and
my_recursive_function(32) for the following code snippet. [0.5
M]
void my_recursive_function(int n) {
if(n == 0) {
printf("False");
return;
}
if(n == 1) {
printf("True");
return;
}
if(n%2==0)
my_recursive_function(n/2);
else {
printf("False");
return;
}
}
int main() {
my_recursive_function(n);
return 0;
}