Q. Find final value of i.in for (i=1;i<=m;++i) where m=100.
Answers
Answered by
0
The output will be 101.
Attachments:
Answered by
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
Math,
5 months ago
English,
5 months ago
Science,
5 months ago
Math,
9 months ago
CBSE BOARD X,
9 months ago
Math,
1 year ago
Social Sciences,
1 year ago