void foo(bool flag)
{
if (flag)
... do something ...
else
... do something else ...
}
void bar (void)
{
foo (false);
foo (true);
foo (false);
foo (true);
foo (false);
foo (true);
}

From above code how many copies of foo GCC will produce

Options
- one copy
- Two Copy
- Three Copies
- Four Copies


CORRECT ANSWER : Two Copy

Write your comments


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)


Advertisement