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
1. Basic Heap: Each memory location in our model of the RAM will be an instance of type Memory: 2. typedef union Memory_u Memory; 3. union Memory_u{ 4. char character;

create algorithm for doubly link list using c data structure

Project Description: Currently seeking someone who can create me a software application (google chrome crx file_ that will auto add all shoe sizes to cart directly and if not av

(a) Verify the values of the resistors with the following colour coding: (i) red-red-orange-silver (ii) orange-orange-black-blue-green (b) What is the value of a resistor

A: 1.      By using const protects you against programming errors which inadvertently alter data. 2.      By using const allows function to procedure const and non-const actu

This assignment builds on Homework 3. The two major modifications are the instruction of pointers and the calculation of mortgage interest rates. Requirements for Project 2:

algorithm to find whether a given number is prime number or not? using pseudo code and flowchart

How would I make a maze in C++? I would prefer to use the recursion maze generation algorithm if possible, thanks!