#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

Which of the following about the C comments is incorrect ? a.commentscan go over multiple lines b.comments can start any where in the line c.a line can contain comments with out any language statements d.comments can occur within comments

6 Answers   TCS,


Write a c code segment using a for loop that calculates and prints the sum of the even integers from 2 to 30, inclusive?

4 Answers  


What do you mean by a local block?

0 Answers   InterGraph,


inline function is there in c language?

4 Answers  


Can a pointer point to null?

0 Answers  






any C program contains only one function, it must be a) void () b) main () c) message () d) abc ()

0 Answers  


main() { printf(5+"good morning"); printf("%c","abcdefgh"[4]); }the o/p is morning and e...how someone explain

1 Answers  


Which type of language is c?

0 Answers  


Explain how can a program be made to print the name of a source file where an error occurs?

0 Answers  


Write a program to find the biggest number of three numbers in c?

0 Answers  


main() { int a=4,b=2; a=b<<a + b>>2; printf("%d", a); }

11 Answers   HCL, Vector, Vector India, Vector Solutions, Wipro,


How to check whether string is a palindrome, WITHOUT USING STRING FUNCTIONS?

2 Answers   Aricent, Manipal University,


Categories