What will be the values of ans, x, and y after the following statements are executed?

```

int ans = 35, x = 50, y = 50;
if (x >= y)
{
ans = x + 10;
x -= y;
}
else
{
ans = y + 10;
y += x;
}
```

a. ans = 60, x = 0, y = 50
b. ans = 45, x = 50, y = 0
c. ans = 45, x = 50, y = 50
d. ans = 60, x = 50, y = 100


a. ans = 60, x = 0, y = 50

Computer Science & Information Technology

You might also like to view...

What are the three ways to see if your router’s serial port is a DCE or DTE end?

What will be an ideal response?

Computer Science & Information Technology

What is the difference between a cross-functional team and a subsystem team? Provide examples and justify your choices.

What will be an ideal response?

Computer Science & Information Technology

A color ____________________ is a combination of colors that work well together.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

What type of survey can help a network administrator make decisions about bands, channels, and widths when installing new access points?

A. wireless B. site C. frequency D. architectural

Computer Science & Information Technology