What does it mean when we mention prototype of a function in C language?

2017

What does it mean when we mention prototype of a function in C language?

  1. A.

    Prototyping

  2. B.

    Calling

  3. C.

    Declaring

  4. D.

    Defining

Attempted by 289 students.

Show answer & explanation

Correct answer: A

A function prototype provides the compiler with the function’s name, return type, and parameters before its actual use. The process of mentioning this prototype in a C program is called Prototyping, which allows the compiler to perform type-checking.

Explore the full course: Btsc Lab Assistant