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
What is default value of global variable in c?
Explain how can type-insensitive macros be created?
What are c header files?
"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 are the types of i/o functions?
Does free set pointer to null?
What does double pointer mean in c?
What is a null pointer in c?
what is the difference between class and unio?
Why do we write return 0 in c?
What library is sizeof in c?
Write the test cases for checking a variable having value in range -10.0 to +10.0?
exit () is used to a) exit () terminates the execution of the program itself b) exit () terminates the execution of the loop c) exit () terminates the execution of the block d) none of the above
What is the heap?
Write a C program on Centralized OLTP, Decentralized OLTP using locking mechanism, Semaphore using locking mechanism, Shared memory, message queues, channel of communication, sockets and a simple program on Saving bank application program using OLTP in IPC?