Explore BrainMass
Share

Declaration of a Variable

This content was STOLEN from BrainMass.com - View the original, and get the already-completed solution here!

1. Why declaration of a variable is considered to be an important (and sometimes required) part of good programming practice?

2. Name few languages that allow use of variables without even declaring them. Discuss about its pros and cons?

3. What is a keyword in a programming language? Why it is not a good practice to use reserved words as variable names?

© BrainMass Inc. brainmass.com December 20, 2018, 12:28 am ad1c9bdddf
https://brainmass.com/computer-science/python/declaration-of-a-variable-153746

Solution Preview

"1. Why declaration of a variable is considered to be an important (and sometimes required) part of good programming practice? "
- There are at least four advantages declaration of a variable:
a) It helps to avoid ambiguity in reading and debugging the code
b) It helps in maintaining and further support of ...

$2.19