Vidyalelo
PHP · Q78

Control Structures(Loop In PHP)

Programming · PHP · question 78

Q78

What will be the output of the following PHP code ? 0; i--) print i; ?>

A.
infinite loop
Answer
B.
0 1 2 3 4 5
C.
0 1 0 1 2 0 1 2 3 0 1 2 3 4 0 1 2 3 4 5 0 1 2 3 4 5
D.
no output

Answer: Option A

Solution

Answer: Option A
Solution:
In the second loop j value is not being changed.