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

Assignment Help:

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. 


Related Discussions:- Define external storage class - computer programming

.C# mouse and maze program, .Create a Csharp solution that will show a maze...

.Create a Csharp solution that will show a maze in the user interface and will show a mouse walking through the maze attempting to locate the exit door (the cheese).

Basics, conceptual difference between big o,big thete and big omega

conceptual difference between big o,big thete and big omega

Optimized nic driver for windows compact 7, Optimized NIC Driver for Window...

Optimized NIC Driver for Windows Compact 7 for Hard Real Time Communication Project Description: I am seeking an optimized driver (miniport driver) that will be used for sele

Explain concept of object initialization, Object Initialization An obje...

Object Initialization An object of a derived class can be initialized to an object of a base class. If both the classes have similar data members, then no specific constructor

Guidelines or "rules of thumb" for overloading operators?, What are some gu...

What are some guidelines / "rules of thumb" for overloading operators? A: Here are a few guidelines / rules of thumb .Use common sense. If your overloaded operator makes life si

Arrays, how to write the code for operation research

how to write the code for operation research

Explain operator overloading fundamentals, Operator Overloading Fundamental...

Operator Overloading Fundamentals The C language uses the concept of Operator Overloading discreetly. The asterisk (*) is used as multiplication operator as well as indirect

Doubt!, find the greater of the two variables, without using conditional lo...

find the greater of the two variables, without using conditional loops or ternary operators?

Explain the polymorphism in object-oriented programming, Problem: (a) ...

Problem: (a) A GUI can contain text-fields, buttons, and other labels. A button usually triggers an event on the GUI. Explain the different processes in registering an event

Some of the basic rules of cpp program, Ba s i c r u l e s o f C...

Ba s i c r u l e s o f C + + p r o g r a m : ·     I t m u s t h a v e o n l y o n e m a i n f u n c ti o n ·

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd