Vidyalelo
PHP · Q102

Operators And Expressions

Programming · PHP · question 102

Q102

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

A.
210
B.
10
C.
no output
D.
infinite loop
Answer

Answer: Option D

Solution

Answer: Option D
Solution:
The loop never ends as i is always incremented and then decremented.