adplus-dvertising
frame-decoration

Question

What will be the output of the following PHP code ?
<?php
$i = 0;$j = 1;$k = 2;
print !(( +  + $i + $j) > ($j - $k));
?>

a.

1

b.

no output

c.

error

d.

0

Posted under PHP

Answer: (b).no output

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What will be the output of the following PHP code ?

Similar Questions

Discover Related MCQs

Q. By truncation module operator % in PHP changes double in

Q. Mt_rand ( ) function generates a random integer by using

Q. PHP does automatic conversion of

Q. Which function is used for converting arguments to doubles?

Q. Integer remainder from division of left hand argument by absolute value of right hand argument, is behavior of which arithmetic operator

Q. Ceiling function is denoted by

Q. Random number functions offered by PHP is implemented by

Q. Increment operator have two flavors one is postincrement and

Q. *, /, % operators have higher precedence than

Q. Floor ( ), ceil ( ), round ( ), abs ( ), min ( ), max ( ) all functions are example of

Q. Which operator returns true if two arguments are not equal or not have same type?

Q. If rand ( ) function is called by no argument it returns a number between 0 and

Q. Intval ( ) function is used for

Q. Module operator % in PHP only accepts

Q. Operator that takes simple values as arguments and evaluate it either TRUE or FALSE

Q. +=, −=, *=, /=, %= all are example of

Q. Increment operator is denoted by

Q. === operator is true if its two arguments are exactly

Q. Comparison operators have higher precedence than

Q. Rand ( ) and mt_ rand ( ) functions are examples of