DonjonMaister to Programmer Humor@lemmy.ml · 1 year agoThe difference between an instance variable and a static variable.imagemessage-square10fedilinkarrow-up153arrow-down11file-textcross-posted to: programmer_humor
arrow-up152arrow-down1imageThe difference between an instance variable and a static variable.DonjonMaister to Programmer Humor@lemmy.ml · 1 year agomessage-square10fedilinkfile-textcross-posted to: programmer_humor
minus-squarethebestaquaman@lemmy.worldlinkfedilinkarrow-up2·1 year agopersonally I prefer including the file prog_constants.h int program_state; // Keeps track of stuff in all translation units. That way I can easily keep track of what different parts of the program are doing at any time by modifying a single variable.
personally I prefer including the file
prog_constants.h
int program_state; // Keeps track of stuff
in all translation units. That way I can easily keep track of what different parts of the program are doing at any time by modifying a single variable.