What will be the output of the following if x=5
1. 5*++x
2. 5*x++
urgent !!
Answers
Answered by
8
1. 30
since, the increment is done before so ++x changed to 6 and result is 6*5
2. 25
since, increment is done after so value of x++ is still 5 so result is 5*5
since, the increment is done before so ++x changed to 6 and result is 6*5
2. 25
since, increment is done after so value of x++ is still 5 so result is 5*5
1Rubin1:
m = 5 -2 = 3
Similar questions