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>
main()
{
int a=1;
int b=0;
b=++a + ++a;
printf("%d %d",a,b);
}

Answer Posted / ashok

initially a=1,b=0
++a=2 //1+1=2
++a=3 //2+1=3
b=2+3=5
answer:a=3 b=5

Is This Answer Correct ?    6 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is indirection?

1057


Describe the complexity of Binary search, Quicksort and various other sorting and searching techniques..

1009


What is "Duff's Device"?

1140


What is the equivalent code of the following statement in WHILE LOOP format?

1269


What is function in c with example?

1110


What are loops c?

1029


When we use void main and int main?

1045


What are the 3 types of structures?

1007


Explain what does it mean when a pointer is used in an if statement?

1032


Explain output of printf("Hello World"-'A'+'B'); ?

1466


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

1189


What is formal argument?

1113


What are the scope of static variables?

1143


What is a pointer and how it is initialized?

1114


List the difference between a 'copy constructor' and a 'assignment operator' in C?

1061