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
Write my own zero-argument manipulator that should work same as hex?
Tell me an example where stacks are useful?
What is c++ in english?
When do we run a shell in the unix system?
What is c++ similar to?
Explain differences between alloc() and free()?
Can we delete this pointer in c++?
What does it mean to declare a member function as static?
What is vectorial capacity?
Reads in the size of a square from the screen; 2. Prints a hollow square of that size out of “-“, “|” and blanks on screen; 3. Prints the same hollow square onto a text file. Your program should work for squares of all side sizes between 1 and 20. --- │ │ │ │ │ │ ---
What can c++ be used for?
Explain the difference between c++ and java.
Differentiate between realloc() and free().
What is constant in c++ with example?
Explain about templates of C++.