What is the output of the following code:
int p = 5 + 7/2;
switch (p)
{
case 5: cout << ‘a’; break;
case 7: cout << ‘b’; break;
case 8: cout << ‘c’; break;
default: cout << “None of the above”;
}
a) a
b) b
c) c
d) None of the above
c) c
Computer Science & Information Technology
You might also like to view...
A file name includes the name you assign and a file ________ assigned by the program you are using
Fill in the blank(s) with correct word
Computer Science & Information Technology
f the Truck class extends the Vehicle class, the Truck class is called the _________ , and the Vehicle class is called the _________.
a) superclass, subclass b) subclass, superclass c) superclass, direct superclass d) direct superclass, superclass
Computer Science & Information Technology