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 |
write the program for maximum of the following numbers? 122,198,290,71,143,325,98
how can i print "hello".please consider inverted commas as well.i want to print on console: "hello"
if array a conatins 'n' elements and array b conatins 'n-1' elements.array b has all element which are present in array a but one element is missing in array b. find that element.
18 Answers Parexel, Ram Infotech, Zycus Infotech,
let's take a code struct FAQ { int a; char b; float c; double d; int a[10]; }*temp; now explain me how the memory will be allocated for the structure FAQ and what address will be in the structure pointer (temp)....................
What are valid operations on pointers?
What is a lvalue
Explain setjmp()?
What is the Lvalue and Rvalue?
How do you determine the length of a string value that was stored in a variable?
main() { int i = 10; printf(" %d %d %d \n", ++i, i++, ++i); }
What is the difference between int main and void main in c?
What is a structure in c language. how to initialise a structure in c?