Tuesday, July 28, 2009

Given the function header: int F (void)?

Which correctly invokes the function F, assuming N is an integer value?





a. N=F;


b. N=F();


c. N= int F();


d. N=F (void):


e. none of the above

Given the function header: int F (void)?
depends on the programing language we're in...





but b. n=F(); is the answer
Reply:B





This is a trivially simple question. If you are using Visual Basic, then A is correct also.
Reply:b


No comments:

Post a Comment