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
What is a example of a variable?
What is the size of a union variable?
hi... can anyone help me to make a two-dimensinal arrays in finding the sum of two elements plzzz. thnx a lot...
What is ctrl c called?
Write a code to determine the total number of stops an elevator would take to serve N number of people.
What is this pointer in c plus plus?
Difference between malloc() and calloc() function?
Find MAXIMUM of three distinct integers using a single C statement
What is the argument of a function in c?
how should functions be apportioned among source files?
What are global variables and how do you declare them?
what is diffrence between linear and binary search in array respect to operators?what kind of operator can be used in both seach methods?
program to find error in linklist.(i.e find whether any node point wrongly to previous nodes instead of next node)
What is void c?
code for quick sort?