What will be displayed after the following statements execute?

```
int funny = 7, serious = 15;
funny = serious % 2;
if (funny != 1)
{
funny = 0;
serious = 0;
}
else if (funny == 2)
{
funny = 10;
serious = 10;
}
else
{
funny = 1;
serious = 1;
}
cout << funny << " " << serious << endl;
```

a. 7 15
b. 0 0
c. 10 10
d. 1 1
e. None of these


d. 1 1

Computer Science & Information Technology

You might also like to view...

The Option Compare Database statement is used in a module to require that all variables be declared before they are used

Indicate whether the statement is true or false

Computer Science & Information Technology

Every node in a doubly linked list has two pointers: ____ and ____.

A. top; bottom B. back; next C. current; forward D. previous; forward

Computer Science & Information Technology

Item D in the accompany figure is used to identify _______________ settings.

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

Computer Science & Information Technology

A           directs a user to take a specific action.

a) declaration b) error c) prompt d) None of the above.

Computer Science & Information Technology