Vidyalelo
PHP · Q110

Operators And Expressions

Programming · PHP · question 110

Q110

What will be the output of the following PHP code ?

A.
02
Answer
B.
12
C.
01
D.
21

Answer: Option A

Solution

Answer: Option A
Solution:
First case i is incremented after setting x to i.