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 / hemanth
All,
output of above code is compiler depended i.e the order of
evalulation.
| Is This Answer Correct ? | 8 Yes | 5 No |
Post New Answer View All Answers
What does %p mean?
Do string constants represent numerical values?
How can you access memory located at a certain address?
List the variables are used for writing doubly linked list program.
while initialization of array why we use a[][2] why not a[2][]...?
Describe the header file and its usage in c programming?
Why do we need a structure?
What is p in text message?
What is the difference between array and pointer?
What is union and structure in c?
What are the types of type specifiers?
Can you add pointers together? Why would you?
I completed my B.tech (IT). Actually I want to develop virtual object that which will change software technology in the future. To develop virtual object what course I have to take. can I any professor to help me.
What is typeof in c?
Explain how do you declare an array that will hold more than 64kb of data?