What is the output of the following code given the function definition below?
string word = “Hello”;
mystery (word);
cout << word;
void mystery (string &p) // function definition
{
int size = p.length ();
for (int c = 0; c < size; c++)
p.insert(0, “*”);
}
a) Hello
b) *Hello
c) Hello*****
d) *****Hello
d) *****Hello
You might also like to view...
The following statement is an example of __________.
import java.util.*; a. an explicit import statement b. an unconditional import statement c. a wildcard import statement d. a conditional import statement
Counter-controlled repetition is also known as:
a. Definite repetition b. Indefinite repetition c. Multiple-repetition structure d. Double-repetition structure
Moving an item to a higher level in an outline is called demoting the item.?
Answer the following statement true (T) or false (F)
Compression where no data is lost when decompressed is referred to as ________
Fill in the blank(s) with correct word