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
Are vectors passed by reference c++?
When does a name clash occur in c++?
What is this pointer in c++?
What is the insertion operator and what does it do?
What is set in c++?
What is the basic difference between C and C++?
What is the use of structure in c++?
What is purpose of abstract class?
Write a program in C++ for Fibonacci series
How can you quickly find the number of elements stored in a static array? Why is it difficult to store linked list in an array?
If a function doesn’t return a value, how do you declare the function?
What is the difference between set and map in c++?
What relational operators if statements in c++?
What is the difference between while and do while loop?
What is the use of class in c++?