#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 is page thrashing?

0 Answers  


hi how to convert program from notepad to turboc editor can u please help me

3 Answers  


You are to write your own versions of strcpy() and strlen (). Call them mystrcpy() and mystrlen(). Write them first as code within main(), not as functions, then, convert them to functions. You will pass two arrays to the function in the case of mystrcpy(), the source and target array.

0 Answers  


WAP to accept rollno,course name & marks of a student & display grade if total marks is above 200?

4 Answers  


What is a example of a variable?

0 Answers  






for(i=1;i>0;i++); printf("i=%d",i); what will be the answer????

7 Answers  


If i have an array 0 to 99 i.e,(Size 100) I place the values 1 to 100 randomly like a[0]=29,a[1]=56 upto array[99].. the values are only between 1 to 100. getting the array values by using scanf.. If i entered one wrong element value line a[56]=108. how can i find it.. and also how to find the missing value in 1 to 100.. and i want to replace the missing values.. any one of them know please post your answer..

0 Answers   IBM, Wipro,


write a c program to print the next of a particular no without using the arithmetic operator or looping statements?

1 Answers   TCS,


When can you use a pointer with a function?

0 Answers  


what is the difference between i++ and ++i?

5 Answers  


What are structures and unions? State differencves between them.

0 Answers   iNautix,


differnce between do and do while

3 Answers   DOEACC,


Categories