What is the value of x after the following code segment executes, if y is 20 and z is 2?
switch (y – z)
{
case 20: x = y + z; break;
case 21: x = y; break;
case 22: x = z; break;
default: x = y * 2;
}
40
Computer Science & Information Technology
You might also like to view...
What data types would you use for the following fields: price, phone number, streetaddress, ZIP code, and notes about product usage?
What will be an ideal response?
Computer Science & Information Technology
Which of the following refers to a seller in an auction driving up the cost of his or her own item by bidding on it?
a. fee stacking b. shill bidding c. misrepresentation d. nondelivery
Computer Science & Information Technology