C language apptitude test question-help

India
December 28, 2010 5:53am CST
Here are the lines,write the output int i=5; printf(“%d%d%d%d%d%d”,i++,i–,++i,–i,i); According to me answer should be: 556555 Am I correct?
1 response
@Strovek (868)
• Malaysia
28 Dec 10
I think it should be 556-550 There are 6 digits but 5 in the parameters. If you want to confirm, just write the line and run it.
• India
28 Dec 10
Thanks.. I don't hv C installed so was asking for help
@Strovek (868)
• Malaysia
29 Dec 10
If you are using Windows, you can download the gcc compiler from: http://sourceware.org/cygwin With that you should be able to learn and test C programming for free.
• India
29 Dec 10
Thats a great help Strovek