Computer Science, asked by jnandani038, 9 months ago

Q. Find final value of i.in for (i=1;i<=m;++i) where m=100.​

Answers

Answered by allysia
0
The output will be 101.

Attachments:
Answered by aarthideva
0

Answer:

i = 101

Explanation:

'i' will be incremented by 1 at each iteration. when i==m (i.e) i=100, loop executes its body of statements and increments 'i' by 1. i=101. Now the condition i<=100 fails and compiler comes out of the loop.

Finally value of 'i' = 101

Similar questions