What are Storage Classes in C ?

Answer Posted / mustaffa hasan

Auto,Static,Extern,Register.Auto are Local variables known
only to the function in which it is declared.Default is
auto.Static are Local variable which exits and retains its
value even after the control is transferred to the calling
function.Global are Global variables known to all functions
in the file.Register are Local variable which is stored in
register.

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is volatile variable in c with example?

581


Is main is user defined function?

590


How to get string length of given string in c?

605


What is substring in c?

635


GIVEN A FLOATING POINT NUMBER HOW IS IT ACTUALLY STORED IN MEMORY ? CAN ANYONE EXPLAIN?? THE 32 BIT REPRESENTATION OF A FLOATING POINT NUMBER ALLOTS: 1 BIT-SIGN 8 BITS-EXPONENT 23 BITS-MANTISSA

1425






What are 'near' and 'far' pointers?

616


What are different types of variables in c?

566


What is an arrays?

650


Explain what will be the outcome of the following conditional statement if the value of variable s is 10?

738


What is the size of enum in bytes?

581


What are the 4 types of organizational structures?

621


Describe explain how arrays can be passed to a user defined function

599


What do the functions atoi(), itoa() and gcvt() do?

722


What does the file stdio.h contain?

597


Explain the bubble sort algorithm.

638