minus-squareexoplanetary@lemmy.worldtoProgrammer Humor@lemmy.ml•War Crimeslinkfedilinkarrow-up13·1 year agoYep, main returns an int in C++. It’s for the return code - if it returns 0, that indicates the program ran ok, if it returns anything else some sort of error occurred. linkfedilink
minus-squareexoplanetary@lemmy.worldtoMildly Infuriating@lemmy.world•Online datinglinkfedilinkEnglisharrow-up6arrow-down1·1 year agoIt was probably like Tame Impala or something lmao linkfedilink
Yep, main returns an int in C++. It’s for the return code - if it returns 0, that indicates the program ran ok, if it returns anything else some sort of error occurred.