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 / 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 |
Can you write the function prototype, definition and mention the other requirements.
Write a simple program to find the size of different basic data types in C.
What is the use of typedef in structure in c?
Can you apply link and association interchangeably?
What is the use of sizeof () in c?
write a program to swap two numbers without using temporary variable?
write a 'c' program to sum the number of integer values
What is a class?
int i[2], j; int *pi;i[0] = 1; i[1] = 5; pi = i; j = *pi + 1 + *(pi + 1)Value of j after execution of the above statements will be a) 7 b) 6 c) 4 d) pointer
Hi Every one......... Please Any body give me the answer for my question. Is it possible to print the word "PRINT F", without using printf() statement in C-Language.
what is the difference between entry control and exit control statement?
12 Answers Darbari Lal DAV Model School,
can we write a c program with out using main