Vidyalelo
PHP · Q91

Operators And Expressions

Programming · PHP · question 91

Q91

What will be the output of the following PHP code ?

A.
1
Answer
B.
0
C.
error
D.
no output

Answer: Option A

Solution

Answer: Option A
Solution:
Automatically x is declared and initialized to 0,then decremented and compared with its increments, thus returns 1.