Question: Which statement is not a rule or best practice related to global and local variables? Local variables are defined at the beginning of a program,
Which statement is not a rule or best practice related to global and local variables?
Local variables are defined at the beginning of a program, before functions and before the main code of the program.
Best practices avoid the use of global variables because they disrupt modularization.
Some programmers prefix global variables with or to annotate that they are global.
Variables declared within a function are automatically classified as local.
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
