Q. What will be the output?
Code:
echo (int) true + (int) false;
β
Correct Answer: (A)
1
Explanation: true=1, false=0.
echo (int) true + (int) false;
Explanation: true=1, false=0.