Vidyalelo
PHP · Q74

Control Structures(Loop In PHP)

Programming · PHP · question 74

Q74

What will be the output of the following PHP code ?

A.
0
B.
infinite loop
C.
-1
Answer
D.
1

Answer: Option C

Solution

Answer: Option C
Solution:
The order of execution is initialization, check, increment/decrement, check, increment/decrement, check, increment/decrement….so on .