#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int a=0,b=0,c=0;
printf("enter value of a,b");
scanf("
%d %d",a,b);
c=a+b;
printf("sum is %d",c);
getch();
}
Answer Posted / hitesh kumar
enter value of a,b
10
10
sum is 0
| Is This Answer Correct ? | 2 Yes | 4 No |
Post New Answer View All Answers
What does it mean when a pointer is used in an if statement?
What is the difference between c and python?
hi... can anyone help me to make a two-dimensinal arrays in finding the sum of two elements plzzz. thnx a lot...
What is the condition that is applied with ?: Operator?
What is union in c?
What is meant by type specifiers?
What are pointers?
What is the meaning of c in c language?
How can I prevent another program from modifying part of a file that I am modifying?
Write a program in c to replace any vowel in a string with z?
What is getche() function?
A function can make the value of a variable available to another by a) declaring the variable as global variable b) Passing the variable as a parameter to the second function c) Either of the two methods in (A) and (B) d) binary stream
What is extern c used for?
Explain heap and queue.
What is wrong in this statement? scanf(ā%dā,whatnumber);