What are Storage Classes in C ?

Answer Posted / shashi sourabh kant

There are four type of storage classes in C. These are used
to store variables. These are Extern, Static, Register and
Auto. Auto is the default class assigned to any variable.
eg. if we define int x=10; then it means auto int x=10
register and static differ in only one grounds that
register is there in the cpu and static in the main memory.
extern is global and can be accessed by any program and
anywhere.

Is This Answer Correct ?    704 Yes 59 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain is it better to bitshift a value than to multiply by 2?

724


What is the size of enum in bytes?

596


Hai what is the different types of versions and their differences

1495


What is enumerated data type in c?

633


When a c file is executed there are many files that are automatically opened what are they files?

598






why programs in c are running with out #include? some warnings are display in terminal but we execute the program we get answer why? eg: main() { printf("hello world "); }

1323


What are bitwise shift operators in c programming?

650


Is main is a keyword in c?

616


How can I recover the file name given an open stream or file descriptor?

603


What are the different types of endless loops?

628


Are bit fields portable?

681


an expression contains relational operators, assignment operators, and arithmatic operstors. In the absence of parentheses, they will be evaluated in which of the following order a) assignment, relational, arithematic b) arithematic, relational, assignment c) relational, arithematic, assignment d) assignment, arithematic, relational

819


Can you write the function prototype, definition and mention the other requirements.

670


What is a wrapper function in c?

594


Explain how can I remove the trailing spaces from a string?

632