Home / MCQ Bank / Computer
Computer Basic Php

What is the value of $a and $b after the function call? <?php function doSomething ( & $arg ) { $return = $arg; $arg += 1 ; return $return; } $a = 3 ; $b = doSomething ( $a ) ; ?>

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option B • a is 4 and b is 3

Related Computer Questions

How many stages of procedure does a non-deterministic algorithm consist of? Determine output: #include<stdio.h> #define clrscr() 100 void main() { clrscr(); printf("%dn", clrscr()); } Which of the following shutdown method is often called Warm Boot? String in Java is a? Which of the following property specifies the order of a flexible item relative to the rest of the flexible items inside the same container?