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 |
why array index always starts from zero??
how can i get the output 54321 4321 321 21 1 in c programming........???? pls help......
any string of bits of length 'n' represents a unique non- negative integer between.............?
what will be the output of the following program, justify? #define TEST int TEST getdata() { static i; i+=10; return i; } main() { int k; k = getdata(); }
Multiply an Integer Number by 2 Without Using Multiplication Operator
What is c programing language?
Hai sir, I had planned to write the NIC scientific engineer exam , plz post the sample question......
What is the difference between null pointer and wild pointer?
What are shell structures used for?
write a c program for print your name .but,your name may be small letter mean print a capital letter or your name may be capital letter mean print a small letter .example \\enter ur name : sankar The name is: SANKAR (or) enter your name:SAnkar The name is:saNKAR
What language is windows 1.0 written?
Write code for atoi(x) where x is hexadecimal string.