Q:

What will be the output of the following PHP code ?

0

What will be the output of the following PHP code ?

<?php
$i = 1;
if ($i++ && ($i == 1))
    printf("Yes\n$i");
else
    printf("No\n$i");
?>

  1. No 2
  2. No 23
  3. No 22
  4. No 21

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

(a).No 2

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now