Computer Science, asked by nikhilkumar812345, 1 year ago

which return type must be used if the method does not return any value

Answers

Answered by Anonymous
4
If a function does not return any value ( also called returns void) then the return type of the function will be void.
Answered by priyanshuagarwal032
2
heya!

here is your answer.

You declare a method's return type in its method declaration. Within the body of the method, you use the return statement to return the value. Any method declared void doesn't return a value. It does not need to contain a return statemen
plse mark as brainlist.
Similar questions