Define external storage class - computer programming, C/C++ Programming

Define External Storage Class - computer programming?

When a variable is declared outside a function the storage is permanently assigned to it and its storage class is 'extern' and a declaration for an external variable can look just the name as a local variable declaration. Such a variable is considered to be as global to all functions declared later than and upon exit from the function or block, the external variable remains in existence. These variables are able to be accessed by any function in the program.

Illustration is

extern int a=1, b=2;

The External variables never disappear because they exist throughout the execution life of the program and they can be used to transmit value across functions. They may be unseen if the identifier is redefined.

All the functions have external storage class. This signifies that the key word extern can be used in function prototypes and in function definitions. 

Posted Date: 6/13/2013 6:04:16 AM | Location : United States







Related Discussions:- Define external storage class - computer programming, Assignment Help, Ask Question on Define external storage class - computer programming, Get Answer, Expert's Help, Define external storage class - computer programming Discussions

Write discussion on Define external storage class - computer programming
Your posts are moderated
Related Questions
C CODE FOR PEBBLE MERCHANTS PROBLEM

Explain the Bit Wise Operators? C language has distinction of supporting special operators recognized as bit wise operators for manipulation of data at bit level. These operato

Write a program that keeps record of football results. Program stores following information about each match: Description Type and/or size name of home team max. 25 characters name

Rules of Operator Overloading It is a function defined to an operator with new term or meaning. It cannot produce new operator. It cannot modified the meaning of th

develop an algorithm using pseudocode for computing cos(x) and sin(x). use a sentinel controlled while loop. use the series definition of e^+-jx

Program to define an array in c: Write a program to define an array and print the value of array. void main() { int a[10]={0,11,21,34,44,75,46,57,88,89},i,j,k; clr


Define Scope Rules of C program - Computer Programming? The fundamental rule of scope is that identifiers are accessible only within the block in which they are declared and th

If quicksort is so quick, why bother with anything else? If bubble sort is so bad, why even mention it? For that matter, why are there so many sorting algorithms? Your mission (sho

YOU HAVE GIVEN THE MARKED UP PRICE OF 80% AND DISCOUNT PRICE OF 10% THEN FIND THE SELLING PRICE