Vidyalelo
PHP · Q53

Control Structures(Loop In PHP)

Programming · PHP · question 53

Q53

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

A.
5
B.
555555555…infinitely
Answer
C.
54321
D.
error

Answer: Option B

Solution

Answer: Option B
Solution:
As it is && operator it is being incremented and decremented continuously.