2 Réponses
+ 5
You can maintain a value throughout the code and manipulate with it in particular independent blocks of code.
Think of a game, where your character has an HP parameter. It can be influenced by many different situations and events, but has to be maintained globally, so that you know whether your character is dead or not :)
+ 1
Thanks Kuba Siekierzyński !!!