EDUCATIONAL APPLET: "DEMONSTRATING VARIABLE SCOPE FOR 'C' PROGRAM"  

This educational applet teaches novice users of C programming language the concept of Variable Scope. Variable scope is one of the fundamental concepts of 'C' programming language. In C language, a variable's scope is the region of code in which the compiler can uniquely resolve its identifier. Within a particular scope, an identifier must be unique.
                                           
                                                       

Some of the different variable types are global, local and static variables.

bullet Global variables have scope of the entire program. It exists and can be accessed from all parts of a program.
bullet Local variables have the scope  to the function in which they are declared.
bullet Static variables get initialized at run-time and they remain in memory until the end of the program. A static variable can be local or global.

Everyone who wishes to learn 'C' programming language should know Variable Scope concept before starting to write a program. However, sometimes it is difficult to understand and easy to get confused because:

bullet There are too many variables in one program.
bullet The 'C' programming language allows variables to be located in different functions but sharing same names.

To make instructors explain this concept clearly and for the students to learn the concept fast and easily, we have designed an education learning system for variable scope, which includes four parts: Control panel, Explanation window, display processing window and display variable visibility. It also has Help feature in it which enables the user to understand how to use this applet. This system is an interactive system which enables the users to interact with the system.


Variable Scope Demo


INSTRUCTED BY: Dr.PETER BRUSILOVSKY

CREATED BY: WEIDONG SHI, SHRUTI PARIKH, GUOLIANG XIANG, ZHIWEN YU