InterviewSolution
Saved Bookmarks
| 1. |
What will be the output of the following if x=5 initially ? a) 5* ++x; b)5* x++; |
|
Answer» ++X => PRE increment => x=x+1=5+1=6 => 5* ++x=5*6=30x++ => POST increment => 5* x++ = 5*x=5*6=30 => x=x+1=6+1=7 |
|