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 is the collection of communication lines and routers called?
What is c basic?
Why do we use main function?
What would happen to X in this expression: X += 15; (assuming the value of X is 5)
Explain what standard functions are available to manipulate strings?
How to write a code for implementing my own printf() and
scanf().... Please hep me in this... I need a guidance...
Can you give an coding for c... Please also explain about
the header files used other than #include
formula to convert 2500mmh2o into m3/hr
List some applications of c programming language?
praagnovation
Is c easy to learn?
Differentiate between a for loop and a while loop? What are it uses?
Read the following data in two different files File A: aaaaaaaadddddddd bbbbbbbbeeeeeeee ccccccccffffffff File B: 11111111 22222222 33333333 By using the above files print the following output or write it in the Other file as follows aaaaaaaa11111111dddddddd bbbbbbbb22222222eeeeeeee cccccccc33333333ffffffffffff
What is scanf () in c?
When I tried to go into a security sites I am denied access and a message appeared saying 'applet not initialize'. How can I rectify this problem.
Can a function argument have default value?