Shady_Shiroe to Programmer Humor@lemmy.ml · 3 years agoWar Crimesimagemessage-square38linkfedilinkarrow-up1770arrow-down126
arrow-up1744arrow-down1imageWar CrimesShady_Shiroe to Programmer Humor@lemmy.ml · 3 years agomessage-square38linkfedilink
minus-squareexoplanetarylinkfedilinkarrow-up14·3 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.
minus-squareNeon@kbin.sociallinkfedilinkarrow-up3·3 years agothat actually makes sense. thanks for that explanation.
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.