Question: When the function has a datatype of void, what is expected to be returned? A . Any Object can be returned, but primitive data cannot

When the function has a datatype of void, what is expected to be returned?
A. Any Object can be returned, but primitive data cannot be returned.
B. Anything can be returned, the void keyword allows any type of data to be returned.
C. Any primitive can be returned, but Object data are not allowed to be returned.
D. Nothing should be returned, there should either be no return statement or the return statement should be empty.
When the function has a datatype of void, what is

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!