314 views
0 votes
0 votes

1 Answer

Best answer
1 votes
1 votes

Function add all digits of parameter and then return f(sum of digits)
If sum of digit is 9 then it will return 1 else 0.

after 1st function call Sum = 58

then F(58 ) will be called..
next is f(13)
next is f(4)
Finally 0 returned .

 

selected by

Related questions

1 votes
1 votes
0 answers
2
sumit goyal 1 asked Jan 29, 2018
219 views
main(){char a[22] = "sumit"printf("%s",a);}It prints sumit fine here but ,if statement is printf("%c",a); It should print s but it is printing $\alpha$iam bit confu...
2 votes
2 votes
3 answers
4
sumit goyal 1 asked Aug 4, 2017
438 views
can anyone tell me difference between dense and sparse matrix :))