Return type | SoloLearn: Learn to code for FREE!


Return type

The void printSomething. Is it compulsory to use printSomething after the void


4/27/2018 11:58:59 AM

winchester ernest amankwaa

5 Answers

New Answer


It is just a name to the function. You can put any name on that place. It is just the function name


It's your choice to name a function...but be sure to define it.


nah, its just naming function. Name your function whatever you wish. You might wanna go back to your functions lesson. Revise a bit.


no..void is just a return type to use before main...its not complusary...u may use any other data type instead of it..u may revise about data types once