0
Int?
can we use void instead of int?
1 Answer
+ 2
For functions, yeah of course you can. Don't do it for main, just keep it as int as it follows the C++ standard, and return values from main help to diagnose problems with our programs if they are run from an external source.