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 / minchoo

answer is 2 2 1 and not 3 3 1

Is This Answer Correct ?    4 Yes 43 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a example of a variable?

1015


What is the size of a union variable?

1053


hi... can anyone help me to make a two-dimensinal arrays in finding the sum of two elements plzzz. thnx a lot...

1915


What is ctrl c called?

1043


Write a code to determine the total number of stops an elevator would take to serve N number of people.

1255


What is this pointer in c plus plus?

1085


Difference between malloc() and calloc() function?

1199


Find MAXIMUM of three distinct integers using a single C statement

1062


What is the argument of a function in c?

1045


how should functions be apportioned among source files?

1099


What are global variables and how do you declare them?

1091


what is diffrence between linear and binary search in array respect to operators?what kind of operator can be used in both seach methods?

1858


program to find error in linklist.(i.e find whether any node point wrongly to previous nodes instead of next node)

2094


What is void c?

1079


code for quick sort?

2029