@Shady_Shiroe@lemmy.world to Programmer Humor@lemmy.ml • 2 years agoWar Crimeslemmy.worldimagemessage-square36fedilinkarrow-up1769arrow-down123
arrow-up1746arrow-down1imageWar Crimeslemmy.world@Shady_Shiroe@lemmy.world to Programmer Humor@lemmy.ml • 2 years agomessage-square36fedilink
minus-square@exoplanetary@lemmy.worldlinkfedilink13•2 years 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.
i’m not used to c++ but…
int main()
?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.
that actually makes sense. thanks for that explanation.