Home / C Programming / Declarations and Initializations :: Discussion

Discussion :: Declarations and Initializations

  1. 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.

  2. A.
    True
    B.
    False

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    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.


Be The First To Comment