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
Where can I get an ansi-compatible lint?
What are the 4 types of functions?
i have a written test for microland please give me test pattern
What is a null pointer assignment error? What are bus errors, memory faults, and core dumps?
What are variables c?
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
What is array of pointers to string?
Explain #pragma statements.
how to make a scientific calculater ?
pierrot's divisor program using c or c++ code
What is pointer to pointer in c with example?
Differentiate call by value and call by reference?
What is non linear data structure in c?
Why c is known as a mother language?
What is the difference between typedef struct and struct?