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 a dangling pointer in c++?

871


What is the difference between #import and #include?

811


What gives the current position of the put pointer?

771


What are maps in c++?

730


What new()is different from malloc()?

848


Why we use #include conio h in c++?

816


How does c++ structure differ from c++ class?

860


What is a template in c++?

1357


What are advantages of using friend classes?

860


Why use of template is better than a base class?

890


What is c++ vb?

874


What is flush c++?

755


Why was c++ created?

811


What is the basic difference between C and C++?

869


Write about the scope resolution operator?

806