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
Sir i need notes for structure,functions,pointers in c language can you help me please
What is const volatile variable in c?
How are structure passing and returning implemented?
write a program in C that prompts the user for today's date,tomorrow's date and display the results.Use structures for today's date,tomorrow's date and an array to hold the days for each month of the year.
Why doesnt the call scanf work?
What happens if a header file is included twice?
What is the size of structure in c?
What is the use of getchar functions?
What would happen to X in this expression: X += 15; (assuming the value of X is 5)
How many types of functions are there in c?
Is c object oriented?
Why pointers are used?
Which is an example of a structural homology?
Explain the Difference between the New and Malloc keyword.
What is function in c with example?