Quiz 7

What is the output?

a. 5 4 4
b. 4 4 4
c. 5 5 4
d. 4 5 4

Answer : a

Since, for loop is terminated immediately, so when it comes out of loop value of i=5.
x%i=4
l=i– assigns the value of i to l ,then ,updates value of i.
l=5,I=4

Leave a Reply

Your email address will not be published. Required fields are marked *