@[email protected] to Programmer [email protected] • 2 years agoWar Crimeslemmy.worldimagemessage-square36fedilinkarrow-up1768arrow-down123
arrow-up1745arrow-down1imageWar Crimeslemmy.world@[email protected] to Programmer [email protected] • 2 years agomessage-square36fedilink
minus-square@[email protected]linkfedilink13•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.