What will be the output of the program? # include int - TopicsExpress



          

What will be the output of the program? # include int sumdig(int); int main() { int a, b; a = sumdig(123); b = sumdig(123); printf("%d, %d ", a, b); return 0; } int sumdig(int n) { int s, d; if(n!=0) { d = n%10; n = n/10; s = d+sumdig(n); } else return 0; return s; } -------------------------------- A. 4, 4 B. 3, 3 C. 6, 6 D. 12, 12 ------------------------------ targate.worg.in
Posted on: Fri, 21 Jun 2013 02:18:59 +0000

Trending Topics



Recently Viewed Topics




© 2015