Vidyalelo
PHP · Q46

Operators And Expressions

Programming · PHP · question 46

Q46

What will be the output of the following PHP code ?

A.
0
B.
1
C.
2
Answer
D.
Error

Answer: Option C

Solution

Answer: Option C
Solution:
The expression is considered as (y)%z in this case (10%4)%3 which is 2.