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 |
Suppose I want to write a function that takes a generic pointer as an argument and I want to simulate passing it by reference. Can I give the formal parameter type void **, and do something like this? void f(void **); double *dp; f((void **)&dp);
Explain what is the difference between declaring a variable and defining a variable?
write a c/c++ program that takes a 5 digit number and calculates 2 power that number and prints it?
pgm to find middle element of linklist(in efficent manner)
What are the salient features of c languages?
What is mean by data types in c?
Can we write a program without main() function?
Find the largest number from the given 2 numbers without using any loops and the conditional operator.
What is pointer to pointer in c with example?
What is bubble sort in c?
Wt are the Buses in C Language
Read two numbers from keyboard and find maximum of them?