Your Ad Here
0

What are the different storage classes in C ?

Posted by The Blogger on 8:56 AM in
Answer:

C has three types of storage: automatic, static and allocated.

Variable having block scope and without static specifier have automatic storage duration.

Variables with block scope, and with static specifier have static scope. Global variables (i.e, file scope) with or without the the static specifier also have static scope.

Memory obtained from calls to malloc(), alloc() or realloc() belongs to allocated storage class.

tags: c interview questions and answers, c interview question What are the different storage classes in C, What are the different storage classes in C, storage classes, storage

0 Comments

Post a Comment

Your Ad Here

Copyright © 2009 Interview Questions and Answers