Home / C Programming / Declarations and Initializations :: Discussion

Discussion :: Declarations and Initializations

  1. When we mention the prototype of a function?

  2. A.
    Defining
    B.
    Declaring
    C.
    Prototyping
    D.
    Calling

    View Answer

    Workspace

    Answer : Option B

    Explanation :

    A function prototype in C or C++ is a declaration of a function that omits the function body but does specify the function's name, argument types and return type.

    While a function definition specifies what a function does, a function prototype can be thought of as specifying its interface.


Be The First To Comment