MCQOPTIONS
Bookmark
Saved Bookmarks
→
Php
→
Online Quiz in Php
→
Determine output: void main() { int c = - -2..
1.
Determine output: void main() { int c = - -2; printf("c=%d", c); }
A.
1
B.
-2
C.
2
D.
Error
Answer» D. Error
Show Answer
Discussion
No Comment Found
Post Comment
Related MCQs
PHP files have a default file extension of..
What will be the output of the following PHP code ? $a = ""; if ($a) print "all"; if else print "some";
What will be the output of the following PHP code ? $a = 10; if (0) print "all"; if else print "some"
What will be the output of the following PHP code ? $a = 10; if (1) print "all"; else print "some" else print "none";
What will be the output of the following PHP code ? $a = 1; if (print $a) print "True"; else print "False";
What will be the output of the following PHP code ? $a = 1; if (echo $a) print "True"; else print "False";
What will be the output of the following PHP code ? $a = 1; if ($a--) print "True"; if ($a++) print "False";
What will be the output of the following PHP code ? $x = 0; if ($x == 1) if ($x >= 0) print "true"; else print "false";
What will be the output of the following PHP code ? $x; if ($x == 0) print "hi" ; else print "how are u"; print "hello";
What will be the output of the following PHP code?$team = "arsenal"; switch ($team) { case "manu": echo "I love man u"; case "arsenal": echo "I love arsenal"; case "manc": echo "I love manc"; }
Reply to Comment
×
Name
*
Email
*
Comment
*
Submit Reply