हिंदी

What will be the output of the following PHP code? <?php for ($x = -1; $x < 10;--$x) { print $x; } ?>

Advertisements

प्रश्न

What will be the output of the following PHP code?

<?php
for ($x = -1; $x < 10;--$x)
{
print $x;
}
?>

विकल्प

  • 123456713910412

  • 123456713910

  • 1234567139104

  • Infinite loop

MCQ
Advertisements

उत्तर

Infinite loop

shaalaa.com
Looping Structure
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 7: Looping Structure - Evaluation - PART – I [पृष्ठ ११७]
Advertisements
Share
Notifications



      Forgot password?
Use app×