Vidyalelo
PHP · Q69

Operators And Expressions

Programming · PHP · question 69

Q69

What will be the output of the following PHP code ?

A.
7
B.
9
Answer
C.
0
D.
Error

Answer: Option B

Solution

Answer: Option B
Solution:
Value 3, 4 is passed to the function but that is lost because x and y are initialised to 4 and 3 inside the function. Therefore we get the given result.