Described c++ storage classes?, C/C++ Programming

A: auto: the default. Variables are created and initialized automatically while they are defined and destroyed at the ending of the block containing their definition. They are not observable outside that block.

register:  it is a type of auto variable. a recommendation to the compiler to employ a CPU register for performance.

static: a variable which is known only in the function which contains its definition but is never destroyed & retains its value among calls to that function. This present from the time the program start execution.

extern: a static variable whose placement and definition is determined while all object and library modules are combined (linked) to form the executable code file. It may be visible outside the file where it is defined.

 

Posted Date: 3/21/2013 7:25:30 AM | Location : United States







Related Discussions:- Described c++ storage classes?, Assignment Help, Ask Question on Described c++ storage classes?, Get Answer, Expert's Help, Described c++ storage classes? Discussions

Write discussion on Described c++ storage classes?
Your posts are moderated
Related Questions
The definition of an object(variable ): We can explain a variable(set memory to the variable) in the following ways. e.g. double salary; int month; When more than o

An anagram is a type of word play, the result of rearranging the letters of a word or phrase to produce a new word or phrase. For example the anagram of tea is tea, tae, eat, eta,

Note: Please refer to the Subject Outline for details regarding the assessment of the advanced assignment. The Problem You are to investigate the use of data structures an

Byteland county is very famous for luminous jewels. Luminous jewels are used in making beautiful necklaces. A necklace consists of various luminous jewels of particular colour. Nec

Write a program that displays the following temperature conversion chart on the screen as follows below. Hint: c = 5.0/9.0 * (f - 2) C = degrees in Celsius F = degree in F

The ability to verify at run time the type of an object by using the typed operator or the dynamic_cast operator.

Program to show the ascii value of characters: int main() {                 int one_char;                 cout                 one_char = getch();

program for compiler design in c

Project Description: We are seeking online invoice OCR solution. That will help us to automate accounts payable function. User should be able to use the offered pdf file or s

Node *orderedInsert(Node *p, int newval); /* Allocates a new Node with data value newval and inserts into the ordered list with first node pointer p in such a way that the data va