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
Constructor public class ListNode {    // package access members; List can access these directly private E data; // data for this node privateListNode nextNode; /

Protected derivation In addition to doing private and public derivations, you may also do a protected derivation. In this situation :   The private members inherited

Smugglers are becoming very smart day by day. Now they have developed a new technique of sending their messages from one smuggler to another. In their new technology, they are send

convert string s into palindrome by doing character replacement

Objectives: The objective of this assignment is to use C++ to queue students into an array-based queue for BCS registration. Students have the option of taking five different cours


Program is to store first n natural no in a file: Write a program to  store first n natural no in a file void main()     {     fstream file;     file.open("studen

A: Use references when you can use, and use pointers when you have to. References are generally preferred over pointers whenever you don't require "reseating". Usually this mean

Can you think of a condition where your program would crash without attaining the breakpoint that you set at the starting of main()? A: C++ let for dynamic initialization of glo

Want an EA project for Jack Bsher Project Description: New EA game Skills required   Android, C++ Programming, PHP, Metatrader, SQL