What is wrong with the following code?

int f1( int x, int y)
{
x = y * y;
return x;

int f2( float a, float& b)
{
if(a < b)
b = a;
else
a=b;
return 0.0;
}
}

a. Neither function should return a value
b. Function definitions may not be nested
c. Both parameters to f2 should be pass-by reference
d. in f2, a can not be assigned b.
e. nothing is wrong

b. Function definitions may not be nested

Computer Science & Information Technology

You might also like to view...

How many levels apart are the leaf nodes in a 2-3 tree?

a) 0 b) 1 c) 0 or 1 d) 0, 1, or 2 e) the number of levels is not specified

Computer Science & Information Technology

When you create a set of pages that presents information in two levels of detail, the ____ page displays the detail of the selected record.

A. master B. outer C. nested D. detail

Computer Science & Information Technology