MCQ Practice Single Best Answer Topic: Function in C Language

Q What is the return type of a function in C?

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

Choose Your Answer

Click an option to check whether your answer is correct.

  • A void
  • B int
  • C char
  • D Both A and B and C
Correct Answer: D

Explanation

Answer: D) Both A and B.

A function in C can have either a return type of void or an integer type (int, char, short, long, etc.) or a pointer type.

Share This Question

Share this MCQ with your friends or study group.