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 |
Do you know what are bitwise shift operators in c programming?
what is call by value and call by reference
Why do we use namespace feature?
What is restrict keyword in c?
Explain what are global variables and explain how do you declare them?
What is static and volatile in c?
p*=(++q)++*--p when p=q=1 while(q<=6)
What are the rules for identifiers in c?
Write a C program that computes the value ex by using the formula ex =1+x/1!+x2/2!+x3+3!+………….
List the difference between a "copy constructor" and a "assignment operator"?
Program to write some contents into a file using file operations with proper error messages.
Describe newline escape sequence with a sample program?