Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


#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 the answer for it main() { int i; clrscr(); printf("%d",&i)+1; scanf("%d",i)-1; }

3 Answers  


GIven a sequence of characters. How will you convert the lower case characters to upper case characters. ( Try using bit vector - sol given in the C lib -> typec.h)

0 Answers  


application attempts to perform an operation?

0 Answers  


Explain what is operator promotion?

0 Answers  


What are the disadvantages of a shell structure?

0 Answers  


int x=5; printf("%d%d%d",x,x<<2,x>>2);

2 Answers   TANCET,


palindrome for strings and numbers----Can anybody do the prog?

6 Answers   CTS, TCS, Vipro Lifescience Pvt,


What are operators in c?

0 Answers  


Reverse the part of the number which is present from position i to j. Print the new number.[without using the array] eg: num=789876 i=2 j=5 778986

2 Answers  


#include main() { int i=1,j=2; switch(i) { case 1: printf("GOOD"); break; case j: printf("BAD"); break; } }

6 Answers   ME,


provide an example of the Group by clause, when would you use this clause

0 Answers  


What is output redirection?

0 Answers  


Categories