how to find sum of digits in C?

Answer Posted / shrth

example:435
the answer is 4+3+5=12

Is This Answer Correct ?    89 Yes 49 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a c token and types of c tokens?

586


What is difference between structure and union with example?

590


Can a pointer point to null?

582


Do you have any idea about the use of "auto" keyword?

662


What are the rules for identifiers in c?

582






Explain how can a program be made to print the line number where an error occurs?

690


What is the difference between variable declaration and variable definition in c?

563


What is typedef struct in c?

582


how to write optimum code to divide a 50 digit number with a 25 digit number??

2748


Why do we need arrays in c?

577


what is the format specifier for printing a pointer value?

609


What do you mean by a local block?

627


What does static variable mean in c?

646


Do character constants represent numerical values?

838


how many errors in c explain deply

1627