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

Is there a way to have non-constant case labels (i.e. Ranges or arbitrary expressions)?

1127


Why do we use main function?

1235


What is the size of enum in bytes?

1134


What is the mean of function?

1191


Sir,please help me out with the code of this question. Write an interactive C program that will encode or decode multiple lines of text. Store the encoded text within a data file, so that it can be retrieved and decoded at any time. The program should include the following features: (a) Enter text from the keyboard, encode the text and store the encoded text in a data file. (b) Retrieve the encoded text and display it in its encoded form. (c) Retrieve the encoded text, decode it and then display the decoded text. (d) End the computation. Test the program using several lines of text of your choice.

2356


What is the difference between void main and main in c?

1208


When I set a float variable to, say, 3.1, why is printf printing it as 3.0999999?

1115


What does node * mean?

1304


What is the difference between array and pointer in c?

1223


How can I sort a linked list?

1085


What is s in c?

1095


What is the total generic pointer type?

1211


Between macros and functions,which is better to use and why?

2319


A SIMPLE PROGRAM OF GRAPHICS AND THEIR OUTPUT I WANT SEE WAHAT OUTOUT OF GRAPHICS PROGRAM

2176


Write a program to print factorial of given number without using recursion?

1042