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
Explain is it better to bitshift a value than to multiply by 2?
What is the size of enum in bytes?
Hai what is the different types of versions and their differences
What is enumerated data type in c?
When a c file is executed there are many files that are automatically opened what are they files?
why programs in c are running with out #include
What are bitwise shift operators in c programming?
Is main is a keyword in c?
How can I recover the file name given an open stream or file descriptor?
What are the different types of endless loops?
Are bit fields portable?
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
Can you write the function prototype, definition and mention the other requirements.
What is a wrapper function in c?
Explain how can I remove the trailing spaces from a string?