GLOBAL VARIABLE 1. It is a variable which is declared outside all the function. 2. Its is accessible through out the program LOCAL VARIABLE 1.It is a variable which is declared with in a function or with in a compound statement. 2.It is accessible only within a function/compound statement in which its is declared.
Learn C++ Programming fast and easy, find C++ Program Codes