Vidyalelo
PHP · Q121

Operators And Expressions

Programming · PHP · question 121

Q121

What will be the output of the following PHP code ?

A.
16
Answer
B.
06
C.
15
D.
05

Answer: Option A

Solution

Answer: Option A
Solution:
1&&0||1 is evaluated to 1 and the a is also pre incremented to 6.