Share
Explore BrainMass

Declaration of a Variable

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?

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