MCQ Practice Single Best Answer Topic: Function in C Language

Q What is a function prototype in C?

Question ID
#7188
Subchapter
Function in C Language
Action
Choose one option below

Choose Your Answer

Click an option to check whether your answer is 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: 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

Share this MCQ with your friends or study group.