What is the output of the following function call given the function definition below?
cout << myFunction (8); // function call
int myFunction (int x) //function definition
{
bool flag = false;
while (!flag)
{
x = x + 1;
flag = ((x % 2 == 0) && (x % 3 == 0));
}
return x;
}
12
You might also like to view...
In Active Directory, which partition holds general information about the Active Directory forest?
A. application B. schema C. configuration D. domain
To select a row, position the mouse pointer on the left edge of the row, then click.
Answer the following statement true (T) or false (F)
COGNITIVE ASSESSMENT What are two elements found in an email address?
A. user name and domain name B. address book and user name C. @ symbol and dot com name D. domain name and POP3
The registration point icon is a ____.
A. crosshair B. circle C. black dot D. star