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
What is const and volatile in c?
Why header file is used in c?
What is the difference between āgā and āgā in C?
What is meant by errors and debugging?
What are the different file extensions involved when programming in C?
What is a char in c?
Is python a c language?
Is null equal to 0 in sql?
What is volatile variable in c with example?
Given two strings S1 and S2. Delete from S2 all those characters which occur in S1 also and finally create a clean S2 with the relevant characters deleted.
What does %c do in c?
What the different types of arrays in c?
What is static identifier?
How can I change the size of the dynamically allocated array?
how can i access hard disk address(physical address)? are we access hard disk by using far,near or huge pointer? if yes then please explain.....