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 are the types of assignment statements?

1075


Is c is a high level language?

1199


Explain 'bus error'?

1106


How can I call system when parameters (filenames, etc.) Of the executed command arent known until run time?

1119


Write a program to generate random numbers in c?

1109


What is a char c?

1048


Why c language?

1086


How can you increase the allowable number of simultaneously open files?

1167


What is the most efficient way to store flag values?

1197


develop algorithms to add polynomials (i) in one variable

2177


What does c mean in standard form?

1187


Why is event driven programming or procedural programming, better within specific scenario?

2447


How many types of sorting are there in c?

1061


Which header file should you include if you are to develop a function which can accept variable number of arguments?

1410


What is volatile variable in c?

1099