1.

Why are functions extern by default?(a) Because functions are always private(b) Because those are not visible throughout the program(c) Because those can’t be accessed in all parts of the program(d) Because those are visible throughout the programThis question was addressed to me in an international level competition.This intriguing question originated from Extern Variable in portion Memory Allocation & Scope of Variable of Object Oriented Programming

Answer»

The correct choice is (a) Because functions are always private

To explain I would say: The program have all of its functions VISIBLE throughout the program usually. Also, there is no specific VALUE that a function must contain. HENCE the functions are extern by DEFAULT.



Discussion

No Comment Found

Related InterviewSolutions