Vidyalelo
Data Structure · Q1125

Miscellaneous on Data Structures

Programming · Data Structure · question 1125

Q1125

What will be the output of the following code? int cnt=0; void my_recursive_function(int n) if(n == 0) return; cnt++; my_recursive_function(n/10); int main() my_recursive_function(123456789); printf("%d",cnt); return 0;

A.
123456789
B.
10
C.
0
D.
9
Answer

Answer: Option D

Solution

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