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


Please Help Members By Posting Answers For Below Questions

Tell me what are bitwise shift operators?

654


What is bubble sort technique in c?

588


Can a file other than a .h file be included with #include?

682


Explain two-dimensional array.

625


Why is it usually a bad idea to use gets()? Suggest a workaround.

896






Not all reserved words are written in lowercase. TRUE or FALSE?

719


What is the most efficient way to store flag values?

683


What are the types of arrays in c?

619


Explain how do you determine whether to use a stream function or a low-level function?

622


Why c is procedure oriented?

566


What is 2 d array in c?

550


Tell us the use of fflush() function in c language?

635


What is the use of bitwise operator?

683


Explain what are multibyte characters?

625


Can we assign integer value to char in c?

611