Machine-translated by Google. Questions are authored in English.
Top

Discussion

Every function must return a value

  • A.Yes
  • B.No

Answer: B

Correct answer: No

A function declared void returns nothing at all, and needs no return statement - reaching the closing brace ends it. Only a function with a non-void return type is obliged to return a value.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.