What is x after the following statements?

int x = 2;
int y = 1;
x *= y + 1;

a. x is 1.
b. x is 2.
c. x is 3.
d. x is 4.

d (y + 1) is executed first and its result is multiplied with x and assigned to x.

Computer Science & Information Technology

You might also like to view...

If you need to make changes to a template after it is protected, you must first remove the ________

A) validation B) locking C) protection D) security

Computer Science & Information Technology

In a moving average, the number range that is averaged is constantly changing, dropping off the first number and adding on the most ________ number

Fill in the blank(s) with correct word

Computer Science & Information Technology