In C++ do you prefer main() to return a void or an int? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

In C++ do you prefer main() to return a void or an int?

c++ main void or int return

30th Sep 2017, 3:52 AM
GW III
1 Answer
+ 1
@ACE I don't see this as a duplicate because I was asking for an opinion of the reader regarding their preferences irregardless of the the technical preferences of other coders. Yours was a very discouraging post for me as a new Sololearn student when I was trying to learn and participate in the q and a. @ACE I also will not participate in any commercial product endorsement or disparagement of any product type or age. I'm sorry to have bothered you and to have made the mistake.
18th Nov 2017, 9:20 AM
GW III