Question on defining or declaring a variable
Posted on 1998-01-10
"C permits multiple definitions of a variable in any given namespace, provided the definitions are the same and
it generates only a single variable for the multiple definitions. C++, however, does not permit redefinition of a
variable or any other entity for a very definite reason that we will discuss later. "
This is what a C++ tutorial that I am learning from states.
1. What is the difference between declaring and defining a variable ?
2. Why would someone want to define more then one time the same variable ?