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 macro?

1118


I have a varargs function which accepts a float parameter?

1057


Is multithreading possible in c?

1020


Why does notstrcat(string, "!");Work?

1155


please give me some tips for the placement in the TCS.

2116


Write a code to achieve inter processor communication (mutual exclusion implementation pseudo code)?

1127


What is pass by reference in c?

1189


Can you please explain the difference between malloc() and calloc() function?

1130


What are c preprocessors?

1205


What is the meaning of && in c?

1025


What is the default value of local and global variables in c?

1049


Write a C program that will accept a hexadecimal number as input and then display a menu that will permit any of the following operations to be carried out: Display the hexadecimal equivalent of the one's complement. (b) Carry out a masking operation and then display the hexadecimal equivalent of the result. (c) Carry out a bit shifting operation and then display the hexadecimal equivalent of the result. (d) Exit. If the masking operation is selected, prompt the user lor the type of operation (bitwise and, bitwise exclusive or, or bitwise or) and then a (hexadecimal) value for the mask. If the bit shifting operation is selected. prompt the user for the type of shift (left or right), and then the number of bits. Test the program with several different (hexadecimal) input values of your own choice.

5346


Explain about C function prototype?

1102


What is variables in c?

1055


Explain how do I determine whether a character is numeric, alphabetic, and so on?

1141