What are Storage Classes in C ?
Answer Posted / sujitpatel
there are 4 types of classes
1 extern
2 static
3 register
4 auto
auto is default storage class which is used as for the
default value . if something s written int a ; then its
default storage is called auto . whereas the scope of the
stATIC and register is for only a file .there is only a
difference that register is used for cpu and static is used
for main memory . the scope of the extern is global it is
used for the whole program .
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
Is it acceptable to declare/define a variable in a c header?
What is difference between far and near pointers?
What are the applications of c language?
"C" language developed by "Dennis Ritchie" at AT & T. his remarks are a) too general, too abstract b) could deal with only specific problems c) lost generality of BCPL and B restored d) no remarks
What does d mean?
Is c object oriented?
What is the translation phases used in c language?
Explain what are reserved words?
Do array subscripts always start with zero?
What is graph in c?
What is the difference between array_name and &array_name?
What is static memory allocation? Explain
What are the different types of control structures in programming?
What is the difference between memcpy and memmove?
What is sorting in c plus plus?