Storage Classes
The very first question is - what is a storage class? To answer this questions let us go through a brief discussion about variables. A variable can be defined as named memory location or a variable is an identifier whose value is liable to change during the course of a program. The behaviors of variables were in different languages for example in BASIC, all variable retain their values through the program. The variable here can be characterized by two different ways based upon;
1. Data type (int, char, or float)
2. Storage class (auto reg static or extern)
We will concentrate here on storage class classification of variables. A storage class is one which provides the following four information about a variable;
1. Scope of variable
2. Lifetime of variable
3. Where the variable gets the storage space.
4. What will be the default value of a variable?
Scope or visibility of a variable is that area or part of the program within which it is recognized or within which it is accessible (i.e., in which part of the program a variable is active.) The scope of a variable may be either local or global. Local scope means the scope of variable is restricted within the module or block in which that variable is declared In other words it is not known outside that block Global scope means that the variable is accessible to all modules of the program (i.e., open to all) These variables are declared outside all functions including the main ()
Function.
Data Structure & Algorithms Assignment Help, Live Experts
Struggling with data structure problems? Data structure subject is quite tough to learn? Need quick assistance in data structure questions? ExpertsMind.com is right place for you where your search ends, We at ExpertsMind offer online data structure assignment help, data structure homework help and data structure and algorithms question's answers by best online support by qualified tutors.
ExpertsMind.com - What is a Storage Class Assignment Help, What is a Storage Class Homework Help, What is a Storage Class Assignment Tutors, What is a Storage Class Solutions, What is a Storage Class Answers, Data Structure Operations Assignment Tutors