Question: Why are global variables often avoided where possible? They are allocated on the stack instead of the heap They only work with integer data types
Why are global variables often avoided where possible?
They are allocated on the stack instead of the heap
They only work with integer data types signed or unsigned
They dramatically slow down your code
They can lead to code that is hard to understand and maintain.I
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
