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 |
Explain what is the concatenation operator?
how many key words availabel in c a) 28 b) 31 c) 32
wat are the two methods for swapping two numbers without using temp variable??
Is c still relevant?
what is the difference between declaration and definition of a variable or function ?
What is the code for 3 questions and answer check in VisualBasic.Net?
can i know the source code for reversing a linked list with out using a temporary variable?
What is the use of void pointer and null pointer in c language?
A C E G H +B D F A I ------------ E F G H D
What are local static variables?
what is difference between null and nul in c language
Display names and numbers of employees who have 5 years or more experience and salary less than Rs.15000 using array of structures (name, number, experience and salary)