Question: Question 5 Given the following code, what are the values of all the variables: $ a = 2 ; $ b = + + $

Question 5
Given the following code, what are the values of all the variables:
$a=2;
$b=++$a;
$c=$b--;
$d=--$c;
$a=3,$b=2,$c=2,$d=2
$a=2,$b=2,$c=1,$d=1
$a=2,$b=2,$c=2,$d=2
$a=3,$b=1,$c=0,$d=-1
 Question 5 Given the following code, what are the values of

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!