write a program in c to find out the sum of digits of a
number.but here is a condition that compiler sums the value
from left to right....not right to left..
Answer Posted / sorab aggarwal
#include<conio.h>
#include<stdio.h>
void main()
{
int a,b,c,d,e;
a=10;
b=20;
c=30;
d=40;
e=(((a+b)+c)+d);
printf("the sum of no. is ::",e);
}
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
Ow can I insert or delete a line (or record) in the middle of a file?
What do you mean by dynamic memory allocation in c? What functions are used?
How do c compilers work?
How are portions of a program disabled in demo versions?
How can I implement a delay, or time a users response, with sub-second resolution?
Explain what is wrong with this statement? Myname = ?robin?;
Differentiate between static and dynamic modeling.
How can I implement sets or arrays of bits?
What is a static variable in c?
Are the outer parentheses in return statements really optional?
What is the maximum length of an identifier?
What do you mean by scope of a variable in c?
What is indirection?
Write a progarm to find the length of string using switch case?
Iam a B.Tech graduate and completed my engineering in 2009, from 2005 to 2009 and after that i had done nothing.Now i want to do job and get into BPO field . Friends give me suggestions as what to say in interview... if they ask me that what would you had done ... these many years without doing job ??????? pls urgent