Question:
What are the different types of Storage classes?
Answer:
There are four types of storage class: automatic, register, external, and static Source: CoolInterview.com
auto - > normal datatypes Extern - > For accessing variables which is not in current file Static -> Allocated single memory for all objects Register -> Faster access of variables,since it will be stored in registers. Source: CoolInterview.com
Answered by: mohan | Date:
| Contact mohan
Auto is not a storage class. There are 4 types of storage class. static register mutable extern.
Auto on the other hand is a storage duration and cannot be specified.All local objects unless specified to be static or dynamic fall under the auto storage duration. Source: CoolInterview.com
Answered by: Surjit | Date: 9/16/2009
| Contact Surjit
Auto Register Extern Static Source: CoolInterview.com
Answered by: velmahesh | Date: 11/16/2009
| Contact velmahesh
Automatic External Static register. Source: CoolInterview.com
Answered by: Vasu | Date: 6/9/2010
| Contact Vasu
There are four different storage classes. 1)Auto 2)Extern 3)Static 4)Register
regards, Nicku Source: CoolInterview.com
Answered by: nicku | Date: 8/9/2010
| Contact nicku
Hi guys. don't forget the volatile Source: CoolInterview.com
Answered by: CrazyMath | Date: 8/10/2010
| Contact CrazyMath
auto extern static resister Source: CoolInterview.com
Answered by: satyakam | Date: 9/3/2010
| Contact satyakam
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|