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 the differences between fork() and exec() in C
How to define structures? ·
can any one please explain, how can i access hard disk(physical address)? it is possible by the use of far,near or huge pointer? if yes then please explain......
write a program for odd numbers?
How can I find the modification date and time of a file?
GIven a sequence of characters. How will you convert the lower case characters to upper case characters. ( Try using bit vector - sol given in the C lib -> typec.h)
What are bit fields? What is their use?
What is a memory leak in structures? How can we rectify that?
How can I send mail from within a c program?
What is the hardest programming language?
If the static variable is declared as global, will it be same as extern?
How would you rename a function in C?