What is the value of ans, x, and y after the following statements are executed?

```
int ans = 0, x = 15, y = 25;
if ( x >= y)
{
ans = x + 10;
x -=y;
}
else
{
ans = y + 10;
y += x;
}
```


a. ans = 0, x = 15, y = 25
b. ans = 25, x = -10, y = 25
c. ans = 35, x = 15, y = 40
d. ans = 25, x = 15, y = 40


c. ans = 35, x = 15, y = 40

Computer Science & Information Technology

You might also like to view...

____________ is the term used for any data stored in binary.

a. Bit wise data b. Electronic information c. Digital data d. Bio metric data

Computer Science & Information Technology

To edit an appointment in Day or Week view, ____ the appointment.

A. double-click B. single-click C. right-click D. left-click

Computer Science & Information Technology

DNS servers that receive zone updates for zones that are not integrated with AD DS are known as ________

a. Secondary name servers b. Additional name servers c. Backup name servers d. None of the above.

Computer Science & Information Technology

For a real number, the number of digits that appear to the right of the decimal point is called the ____of the number.

A. significance B. precision C. variance D. displacement

Computer Science & Information Technology