Discussion :: Functions
-
What will be the output of the program?
#include
Answer : Option C
Explanation :
No answer description available for this question.
Be The First To Comment
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\n", 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;
}
Answer : Option C
Explanation :
No answer description available for this question.
Be The First To Comment