Vidyalelo
Data Structure · Q355

Miscellaneous on Data Structures

Programming · Data Structure · question 355

Q355

What will be the output of the following code? 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(100); return 0;

A.
True
B.
False
Answer

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board