"In C globals are more common especially in the era when RAM was limited. So it's not "bad" it's normal.
Modern Object Oriented code would pass variables around from function to function and would feel clean but use more RAM and spend more time copying data from place to place."
"In C globals are more common especially in the era when RAM was limited. So it's not "bad" it's normal.
Modern Object Oriented code would pass variables around from function to function and would feel clean but use more RAM and spend more time copying data from place to place."