What are the basics of classifying different storage types,
why?

Answer Posted / sv

Automatic
External
Static
Register

Automatic is local storage applied for local variables.

External is global variable,which shall be accessed through
out the program at any modules.

Static retains its values and live till end of the program,
but not visible to all modules, hence accessible with in
the scope.

Register: In few program, where performance is high
importance we can use register storage, so that access
overhead is less.In this storage type , an varible always
uses the register for read/write.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define pre-condition and post-condition to a member function in c++?

646


Write a c program for binary addition of two 8 bit numbers.

3647


How would you use the functions sin(), pow(), sqrt()?

730


Differentiate between realloc() and free().

581


Is c++ the hardest language?

552






How do you sort a sort function in c++ to sort in descending order?

542


Can non-public members of another instance of the class be retrieved by the method of the same class?

591


What is meant by a delegate?

594


Explain what are accessor methods?

648


What is c++ in english?

566


Can there be at least some solution to determine the number of arguments passed to a variable argument list function?

590


Is c++ low level?

565


How would perform Pattern Matching in C++?

637


Define copy constructor.

608


What jobs can you get with a c++ certification?

570