#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();
}

Answers were Sorted based on User's Feedback



#include<stdio.h> #include<conio.h> void main() { clrscr(); int a=0,b=0,c=0; print..

Answer / abhishek

enter value of a,b
10
10
sum is 20

Is This Answer Correct ?    2 Yes 0 No

#include<stdio.h> #include<conio.h> void main() { clrscr(); int a=0,b=0,c=0; print..

Answer / hitesh kumar

enter value of a,b
10
10
sum is 0

Is This Answer Correct ?    2 Yes 4 No

Post New Answer

More C Interview Questions

What are the advantages of c language?

0 Answers  


What is difference between array and pointer in c?

0 Answers  


What are the back slash character constants or escape sequence charactersavailable in c?

0 Answers  


what is the c source code for the below output? 5555555555 4444 4444 333 333 22 22 1 1 22 22 333 333 4444 4444 5555555555

0 Answers   Wipro,


Why is it that not all header files are declared in every C program?

0 Answers  






Print the foll in C...eg when n=5 the o/p must b + + + + + + + + + + + + + + + + +

1 Answers  


How do you define a function?

0 Answers  


What is the difference between GETS();AND SCANF();

4 Answers   TCS,


Explain following declaration int *P(void); and int (*p)(char *a);

3 Answers  


what would be the output of the follwing struct st { char name[20]; int i; float f; }; main() { struct st emp = {"forum"}; printf("%d %f",emp.i,emp.f); }

4 Answers  


simple c program for 12345 convert 54321 with out using string

7 Answers   TCS,


Program to find the sum of digits of a given number until the sum becomes a single digit

8 Answers   InterGraph,


Categories