how to find sum of digits in C?
Answers were Sorted based on User's Feedback
Answer / neha khurana
#include<stdio.h>
#include<conio.h>
void main()
{
int x,y;
clrscr();
printf("\nEnter the value of any two numbers to be
added\n");
scanf("%d%d",&x,&y);
x=x+y;
printf("%d",x);
getch();
}
| Is This Answer Correct ? | 19 Yes | 55 No |
write a c program to do the following: a) To find the area of a triangle. b) To convert the temperature from Fahrenheit to Celsius. c) To convert the time in hours : minutes : seconds to seconds.
What is the difference between typeof(foo) and myFoo.GetType()?
Can a file other than a .h file be included with #include?
WHY DO WE USE A TERMINATOR IN C LANGUAGE?
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......
what does the following code do? fn(int n,int p,int r) { static int a=p; switch(n){ case 4:a+=a*r; case 3:a+=a*r; case 2:a+=a*r; case 1:a+=a*r; } } a.computes simple interest for one year b.computes amount on compound interest for 1 to 4 years c.computes simple interest for four year d.computes compound interst for 1 year
In C language what is a 'dangling pointer'?
What's wrong with "char *p; *p = malloc(10);"?
What is the use of the #include directive?
write a c programming using command line argument,demonstrate set operation(eg;union,intersection,difference) example output is c:>setop 12 34 45 1 union 34 42 66 c:>setop 12 34 1 42 66 c:>setop 12 34 diff 12 56 67 78 setop 12 34
1. What will be the output of the following programs. a) #include <stdio.h> Main() { Int x=4; While(x==1) { X=x-1; Printf(ā%dā,x); --x; } }
What are the 4 types of programming language?