View Single Post
  #47 (permalink)  
Old 01-03-2008, 11:00 PM
seesamjagan seesamjagan is offline
D-Web Programmer
 
Join Date: Aug 2007
Location: Chennai
Posts: 66
seesamjagan is on a distinguished road
Send a message via AIM to seesamjagan Send a message via Yahoo to seesamjagan
Post Re: C- Tricky Question & answers With explanation

output of the above statements is

11 12 10

because printf() will execute its parameter from right to left

so i++ will print 10 & increment to 11

then ++i will increment to 12 & print 12

finally --i will decrement to 11 & print 11

hence the output is 11 12 10
__________________
SeeSamJagan
- Sky is not the "LIMIT", Death is not the END, There is still something beyond....
Reply With Quote