Please tell the output of question 8 both parts a and b........
Attachments:
Answers
Answered by
0
hi there!
mudit11 here to help
____________________________
✓ The statement will be over the else conditions since 4 < 5.
So, the OUTPUT WILL BE: 4 + 5 = 9
✓ ANS. 9
_____________________________
Hope this helps you.
mudit11 here to help
____________________________
✓ The statement will be over the else conditions since 4 < 5.
So, the OUTPUT WILL BE: 4 + 5 = 9
✓ ANS. 9
_____________________________
Hope this helps you.
Answered by
0
8
A)
0 1 2
4 5 6
the post increment prints the existing value before updating it
the pre increment updates the value and then prints it
B)
9
a=3
a=a+1 //a=4
therefore a<5
//a=a+5
//a=9
A)
0 1 2
4 5 6
the post increment prints the existing value before updating it
the pre increment updates the value and then prints it
B)
9
a=3
a=a+1 //a=4
therefore a<5
//a=a+5
//a=9
Similar questions