Question: What is the difference between a void function and a non - void function in C + + ? A void function returns a value,

What is the difference between a void function and a non-void function in C++?
A void function returns a value, while a non-void function does not
A void function does not return a value, while a non-void function does.
A void function cannot have any arguments, while a non-void function can
A void function can only be called from withing the same file, while a non-void function can be called from any file.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!