View Single Post
  #4 (permalink)  
Old 12-24-2007, 03:15 AM
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
Default Re: Solve the problem, if you possible?

Quote:
Originally Posted by velhari View Post
Another solution is,

int d=5;
printf("additon of %d + 1 = %d",d++);

output of the above code will be

addition of 5 + 1 =

because the second parameter for the last %d is missing

so it should be like this
int d=5;
printf("additon of %d + 1 = %d",d,d+1);

to get the out as follows

adition of 5 + 1 is 6
__________________
SeeSamJagan
- Sky is not the "LIMIT", Death is not the END, There is still something beyond....
Reply With Quote