External Storage Class
Variables declared outside all functions (including main ( ) function comes under the external storage class. Generally these variables are declared before main ( ) function. The characteristics of external variables are:
1. Scope is global i..e. they are accessible throughout the program like static global variables but the main difference between static global variables and external variables is that static global variables are global to only a single program (single file program) in which they are declared, whereas the external variables are global in the sense that they are global in the sense that they are visible or accessible in two or more joined files (multiple file programs). To join a file say file I with another file called file2 save one of the files at the following path :
C:\tc\include\file 1.h (check the path of your include file in your C complier)
Now #includes this file filed in your second file file2 just like you include other header files in your programs.
2. Lifetime of external variables is equal to the lifetime of program.
3. Memory allocated to them is in RAM.
4. Default value is Zero.
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 - External Storage Class Assignment Help, External Storage Class Homework Help, External Storage Class Assignment Tutors, External Storage Class Solutions, External Storage Class Answers, What is a Storage Class Assignment Tutors