nerdexam
National_Instruments

200-500 · Question #215

What is the content of $c after the following code has executed? $a = 2; $b = 3; $c = ($a++ * ++$b);

The correct answer is C. 8. See the full explanation below for the reasoning.

Question

What is the content of $c after the following code has executed? $a = 2; $b = 3; $c = ($a++ * ++$b);

Options

  • A0
  • B5
  • C8
  • D4

How the community answered

(35 responses)
  • A
    6% (2)
  • B
    3% (1)
  • C
    80% (28)
  • D
    11% (4)

Community Discussion

No community discussion yet for this question.

Full 200-500 Practice