MCQ Single Best Answer Easy

QWhat is a function prototype in C?

ID: #7188 Function in C Language 218 views
Question Info
#7188Q ID
EasyDifficulty
Function in C LanguageTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A A function that takes no arguments
  • B A declaration of a function that specifies the function's name, return type, and parameter types
  • C A function that returns a pointer to another function
  • D A function that has a variable number of arguments
Correct Answer: Option B

Explanation

Answer: B) A declaration of a function that specifies the function's name, return type, and parameter types. A function prototype is a declaration of a function that appears before the function is defined or called. It specifies the function's name, return type, and parameter types.

Share This Question

Challenge a friend or share with your study group.