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
Computer Science & Information Technology
You might also like to view...
If a security warning appears when you open a database, and you trust the contents, you should click the ________ button
A) Enable Content B) Enable Database C) Enable Editing D) Enable Formatting
Computer Science & Information Technology
COUNTIF() can only count within 1 condition while COUNTIFS can do it with multiple conditions. Select one:
A. FALSE B. TRUE
Computer Science & Information Technology