Set-26 C MCQ

C MCQ Set-9 : Multiple Choice Questions in C Set-9

1. What does the above program print?void foo(int n, int sum){int k = 0, j = 0;if (n == 0) return;k = n % 10;j = n / 10;sum = sum + k;foo (j, sum);printf (“%d,”, k);} int main (){int a = 2048, sum = 0;foo (a, sum);printf (“%dn”, sum); getchar();} A)8, 4, 0, 2, …

C MCQ Set-9 : Multiple Choice Questions in C Set-9 Read More »