Share
Explore BrainMass

Multiple Choice Question in C

****This is "C" programming****

I think the answer is "e" but the text book I'm using seems to address everything but something that turns the light bulb on and says "Yes, you got it". Not sure where the "N" fits in without a valid statement after the int F (void). I'm probably trying to look too deep into the question.

Given the function header:

int F (void)

which of the following correctly invokes the function F, assuming N is an integer variable?

a. N=F;
b. N=F();
c. N= int F();
d. N=F(void):
e. None of the above are valid.

Solution Preview

Hi,

The solution for this is (b) and (d).

I have tested with a sample code which I am attaching below. The rest of the function calls return an ...

Solution Summary

This solution deals with a multiple choice questions based on Functions in C Language

$2.19