Return type | SoloLearn: Learn to code for FREE!

+1

Return type

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

c++

4/27/2018 11:58:59 AM

winchester ernest amankwaa

5 Answers

New Answer

+6

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

+4

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

+2

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

+1

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

0