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...

The ________ contains a list of the currently open Access Database objects that contain VBA procedures and a list of modules within the current database

A) Project Explorer B) Procedure window C) module D) Code window

Computer Science & Information Technology

Discuss the purpose of disaster planning.

What will be an ideal response?

Computer Science & Information Technology