Given the following code fragment, and an input value of 5, what is the output?

int x;
if( x< 3)
{
cout << "small\n";
}
else
{
if( x < 4)
{
cout << "medium\n";
}
else
{
if( x < 6)
{
cout << "large\n";
}
else
{
cout << "giant\n";
}
}
}

a. small
b. medium
c. large
d. giant

c. large

Computer Science & Information Technology

You might also like to view...

When you ____ selected text, it remains in its original location and a copy of it is placed on the Clipboard.

A. cut B. copy C. paste D. move

Computer Science & Information Technology

How should you proceed if your network forensic investigation involves other companies?

What will be an ideal response?

Computer Science & Information Technology