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


Please Help Members By Posting Answers For Below Questions

What is default value of global variable in c?

560


Explain how can type-insensitive macros be created?

570


What are c header files?

575


"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

652


What are the types of i/o functions?

677






Does free set pointer to null?

555


What does double pointer mean in c?

576


What is a null pointer in c?

591


what is the difference between class and unio?

1856


Why do we write return 0 in c?

549


What library is sizeof in c?

569


Write the test cases for checking a variable having value in range -10.0 to +10.0?

1813


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

656


What is the heap?

683


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?

2171