If this code fragment were executed in an otherwise correct and complete program, what would the output be? Explain.

```
int a = 3, b = 2, c = 5
if (a > b)
a = 4;
if ( b > c)
a = 5;
else
a = 6;
cout << a < endl;
a) 3
b) 4
c) 5
d) 6
e) None of the above, the cout statement belongs to the else and so is skipped.
```

d) 6

Computer Science & Information Technology

You might also like to view...

________ orientation is a page displayed or printed that is taller than it is wide

Fill in the blank(s) with correct word

Computer Science & Information Technology

The select system call returns 0 if

A. the timeout value is reached B. it detects end of file on a file descriptor

Computer Science & Information Technology