Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

C | Functions | Question 3

  • Difficulty Level : Basic
  • Last Updated : 04 Feb, 2013

Which of the following is true about return type of functions in C?
(A) Functions can return any type
(B) Functions can return any type except array and functions
(C) Functions can return any type except array, functions and union
(D) Functions can return any type except array, functions, function pointer and union


Answer: (B)

Explanation: In C, functions can return any type except arrays and functions. We can get around this limitation by returning pointer to array or pointer to function.

Take a step-up from those "Hello World" programs. Learn to implement data structures like Heap, Stacks, Linked List and many more! Check out our Data Structures in C course to start learning today.
My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!