Computer Science, asked by bangaraniket3914, 1 year ago

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 ); ?>
A.a is 3 and b is 4
B.a is 4 and b is 3
C.Both are 3
D.Both are 4

Answers

Answered by meghakatiyar1
1
by this function we can see that a is equal to 4 and b=3
Answered by choudhary21
2
✔✔{\texttt{Answer}}✔✔
⤵⤵⤵⤵⤵⤵⤵⤵⤵⤵⤵ ıllıllıllıllıllıllııllıllıllıllıllıllııllıllıllıllıllıllı
_______________________

&lt;b&gt;Typing -

<?

php function doSomething( &$arg )

{ $return = $arg; $arg += 1; return $return; }

$a = 3; $b = doSomething( $a );

?>✌✌✌

B.a is 4 and b is 3✔

\huge\boxed{\texttt{\fcolorbox{aqua}{grey}{B}}}

_______________________ ıllıllıllıllıllıllııllıllıllıllıllıllııllıllıllıllıllıllı

&lt;b&gt;&lt;big&gt;⭐⭐Hope help You⭐⭐


Answer - By Choudhary21
Attachments:
Similar questions