What is the output? int i=7 printf("%dn",i++*i++);
Posted by Raj
What is the output? int i=7 printf("%dn",i++*i++);
Answer: The answer is 56
The compiler will use right to left associtavity here and when it gets i++ then for the value of i, nothing happens then it gets *, it puts it in stack. then gets another i++ by this time the 1st ++ is executed
This entry was posted on October 4, 2009 at 12:14 pm, and is filed under
Wipro technical interview questions
.You can leave a response, or trackback from your own site.