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...

void main()
{
int a=1;
printf("%d %d %d",a,++a,a++);
}
the output is supposed to be 1 2 2....but it is 3 3 1
this is due to calling conventions of C. if anyone can
explain me how it happens?

Answer Posted / sathish

execution does from right to left and while printing it goes from left to right.

Is This Answer Correct ?    18 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Where can I get an ansi-compatible lint?

1155


What are the 4 types of functions?

1061


i have a written test for microland please give me test pattern

2738


What is a null pointer assignment error? What are bus errors, memory faults, and core dumps?

1448


What are variables c?

1056


c programs are converted into machine language with the help of a) an interpreter b) a compiler c) an operatinf system d) none of the above

1270


What is array of pointers to string?

1101


Explain #pragma statements.

1059


how to make a scientific calculater ?

2077


pierrot's divisor program using c or c++ code

2246


What is pointer to pointer in c with example?

1082


Differentiate call by value and call by reference?

981


What is non linear data structure in c?

1037


Why c is known as a mother language?

1089


What is the difference between typedef struct and struct?

1114