ExamVeda
Login
Home
Operators and Expressions in php
?

What will be the output of the following PHP code ?
<?php
$var1 = 1;
echo $var1 = ++$var1 % 2 + ++$var1; 
?>

Answer & Solution
Correct Answer: Option D
Evaluation done from right to left.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.