C Programming - Functions - Discussion


Every function must return a value

[A]. Yes
[B]. No

Answer: Option B


No, If a function return type is declared as void it cannot return any value.

Sanjeev said: (Apr 26, 2012)  
Void means NULL. So it return null value. The functions like constructor in c++ doesn't return even null. So, that function is said to return nothing. According to me your answer is wrong.

Post your comments here:

Name *:

Email   : (optional)

» Your comments will be displayed only after manual approval.