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.
|Global variables have scope of the entire program. It exists and can be accessed from all parts of a program.|
|Local variables have the scope to the function in which they are declared.|
|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:
|There are too many variables in one program.|
|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.
INSTRUCTED BY: Dr.PETER BRUSILOVSKY
CREATED BY: WEIDONG SHI, SHRUTI PARIKH, GUOLIANG XIANG, ZHIWEN YU