ExamVeda
Login
Home
Operators and Expressions in php
?

What will be the output of the following PHP code ?

<?php
echo $x-- != ++$x;
?>

Answer & Solution
Correct Answer: Option A
Automatically x is declared and initialized to 0,then decremented and compared with its increments, thus returns 1.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.