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

Computer Science & Information Technology

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

Computer Science & Information Technology

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)

Computer Science & Information Technology

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

Computer Science & Information Technology

The registration point icon is a ____.

A. crosshair B. circle C. black dot D. star

Computer Science & Information Technology