Question: What is the best practice regarding global variables in programming? They should be declared in every function where they are needed. They should be used
What is the best practice regarding global variables in programming? They should be declared in every function where they are needed. They should be used for all types of variables. They should only be used for configuration settings and constants. They can replace local variables for better memory management.
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
