DonjonMaister@programming.dev to Programmer Humor · 1 year agoThe difference between an instance variable and a static variable.programming.devimagemessage-square10fedilinkarrow-up189arrow-down13file-textcross-posted to: programmer_humor@programming.dev
arrow-up186arrow-down1imageThe difference between an instance variable and a static variable.programming.devDonjonMaister@programming.dev to Programmer Humor · 1 year agomessage-square10fedilinkfile-textcross-posted to: programmer_humor@programming.dev
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.