What is the output of this code?

Consider the following program code:
$val = 5;
if ($val++ == 6)
{
print(“True “);
}
else

{
print(“False “);
}
if ($val++ == 6)
{
print(“True “);
}
else
{
print(“False “);
}
What is the output of this code?

Consider the following program code:
$val = 5;
if ($val++ == 6)
{
print(“True “);
}
else

{
print(“False “);
}
if ($val++ == 6)
{
print(“True “);
}
else
{
print(“False “);
}
What is the output of this code?

A.
FalseFalse

B.
False True

C.
True False

D.
TrueTrue



Leave a Reply 0

Your email address will not be published. Required fields are marked *