Program to find the sum of digits of a given number until
the sum becomes a single digit

Answer Posted / shreshtha bhattacharya

82
25
52
63
65

Is This Answer Correct ?    1 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is strcmp in c?

594


main() { struct s1 { char *str; struct s1 *ptr; }; static struct s1 arr[] = { {"Hyderabad",arr+1}, {"Bangalore",arr+2}, {"Delhi",arr} }; struct s1 *p[3]; int i; < BR> for(i=0;i<=2;i++) p[i] = arr[i].ptr; printf("%s ",(*p)->str); printf("%s ",(++*p)->str); printf("%s ",((*p)++)->str); }

910


How can I call a function with an argument list built up at run time?

632


Explain what are the standard predefined macros?

647


Why do we use int main?

602






Explain what is meant by high-order and low-order bytes?

631


What is getch c?

847


the question is that what you have been doing all these periods (one year gap)

1614


What is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?

727


Can we change the value of #define in c?

582


Is null always equal to 0(zero)?

578


Where are the auto variables stored?

622


C program to find all possible outcomes of a dice?

1851


why do some people write if(0 == x) instead of if(x == 0)?

651


program to find error in linklist.(i.e find whether any node point wrongly to previous nodes instead of next node)

1621