Question

Question 2 One reason not to use global variables is that it makes a program hard to debug. True False
0 0
Add a comment Improve this question Transcribed image text
Answer #1

ANSWER

TRUE

EXPLANATION

Global variable are the variables which can be changed by any part of the program. So, it makes it very difficult to debug them.

How it is difficult?

As its value is changed by any statement. If in case you get a wrong output, you need to track down all the statements whichever tries to access it and change it, to fix the error. So, that makes the job very hectic. So, it makes program hard to debug.

##### FOR ANY QUERY, KINDLY GET BACK, THANKYOU. #####

Add a comment
Know the answer?
Add Answer to:
Question 2 One reason not to use global variables is that it makes a program hard...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT