Declarations and Initializations

Q1: If the definition of the external variable occurs in the source file before its use in a particular function, then there is no need for an extern declaration in the function.

A True

B False

ANS:A - True

True, When a function is declared inside the source file, that function(local function) get a priority than the extern function. So there is no need to declare a function as extern inside the same source file.



img not found
img

For help Students Orientation
Mcqs Questions

One stop destination for examination, preparation, recruitment, and more. Specially designed online test to solve all your preparation worries. Go wherever you want to and practice whenever you want, using the online test platform.