What are Storage Classes in C ?
Answer Posted / vijoeyz
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.
--
http://www.geocities.com/vijoeyz/faq/
| Is This Answer Correct ? | 27 Yes | 282 No |
Post New Answer View All Answers
What is the incorrect operator form following list(== , <> , >= , <=) and what is the reason for the answer?
What is the difference between malloc() and calloc()?
Why are some ANSI/ISO Standard library routines showing up as undefined, even though I've got an ANSI compiler?
Can one function call another?
Why double pointer is used in c?
How reliable are floating-point comparisons?
How do you use a pointer to a function?
Is this program statement valid? INT = 10.50;
Why is c not oop?
Study the following C program :call_me (myvar)int myvar;{ myvar +- 5; }main(){int myvar;myvar = 3;call_me(myvar);printf("%d ",myvar);What will be printed a) 3 b) 5 c) 8 d) symbol
There is a practice in coding to keep some code blocks in comment symbols than delete it when debugging. How this affect when debugging?
Which is more efficient, a switch statement or an if else chain?
Differentiate between Macro and ordinary definition.
in multiple branching construct "default" case is a) optional b) compulsarily c) it is not include in this construct d) none of the above
Why is C language being considered a middle level language?