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

What is long in c++?

737


How would you obtain segment and offset addresses from a far address of a memory location?

621


Can the operator == be overloaded for comparing two arrays consisting of characters by using string comparison?

568


What header file is needed for exit(); a) stdlib.h b) conio.h c) dos.h

614


Write a Program for find and replace a character in a string.

552






Write a program which employs Recursion

732


Define anonymous class.

626


Tell me difference between constant pointer and pointer to a constant.

632


Write a program using display() function which takes two arguments.

611


How does the copy constructor differ from the assignment operator (=)?

624


Write is a binary search tree? Write an algo and tell complexity?

597


What is the array and initializing arrays in c++?

508


What is std :: flush?

577


What is polymorphism & list its types in c++?

623


What is a driver program?

629