MCQ Single Best Answer Easy

QWhat is the return type of a function in C?

ID: #7187 Function in C Language 154 views
Question Info
#7187Q ID
EasyDifficulty
Function in C LanguageTopic

Choose the Best Option

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

  • A void
  • B int
  • C char
  • D Both A and B and C
Correct Answer: Option 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

Challenge a friend or share with your study group.