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...
Resources of a game include:
a. Objects b. An environment c. Sprites d. Backgrounds e. All of the above
Computer Science & Information Technology
Whenever you log in to G.ho.st, your files and applications are always available.
Answer the following statement true (T) or false (F)
Computer Science & Information Technology