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 |
wht is the difference between KPO and BPO ?
2 Answers Accenture, BPO, HCK, HCL, Infosys,
#include <stdio.h> void main() { int i=-1,j=1,k,l; k=!i&&j; l=!i||j; printf ("%d%d",k,l) ; }
What is a MAC Address?
How we can set and clear bit in a byte using macro function?
Go through the following code sinippet char a[20]; a="Hello Orcale Test"; will this compile?
Define Array of pointers.
Do you know the difference between malloc() and calloc() function?
Why clrscr is used after variable declaration?
How can draw a box in cprogram without using graphics.h header file & using only one printf(); ?
which header file contains main() function in c?
17 Answers Google, HCL, TCS,
what is calloc and malloc?
sqrt(x+sqrt(x+sqrt(x+sqrt(x))))=2; Find the value of x?