ANS : FALSE
Given , i=0 , condition for checking i< 5 and each time i is decarsing by 1.
because integer has range from -32768 to 32767 so first it will go from i=0 to i = -32767 then i will became 32767 which is greater than 5, so condition become false then it will stop,
for first iteration : i = 0, i<5 is true then it will print haha
2nd iteration : i= -1 , i<5 is true then it will print haha
3rd iteration : i = -2, i<5 is true then it will prit haha
.
.
.
upto 32768 iterations,
32768 iteration i = -32768 , i<5 is true then it will print haha.
32769 iteration i = 32767 , i<5 is false then it will stop.
i hope this will help give an upvote.
Get Answers For Free
Most questions answered within 1 hours.