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 dynamic dispatch in c++?

546


typedef enum { html, java, javascript, perl, cgi } lang;The above statement defines a : a) Union b) User defined type c) Enumerated variable d) none

697


In this problem you are to write a program that will cut some number of prime numbers from the list of prime numbers between 1 and N.Your program will read in a number N; determine the list of prime numbers between 1 and N; and print the C*2 prime numbers from the center of the list if there are an even number of prime numbers or (C*2)-1 prime numbers from the center of the list if there are an odd number of prime numbers in the list.

1364


What is a volatile keyword in c?

627


What are two dimensional arrays alternatively called as?

647






The difference between printf and fprintf is ?

704


How can a program be made to print the name of a source file where an error occurs?

713


There seem to be a few missing operators ..

599


Why c is known as a mother language?

625


what is a function method?give example?

1904


What is difference between function overloading and operator overloading?

643


What is the main difference between calloc () and malloc ()?

560


A routine usually part of the operation system that loads a program into memory prior to execution a) linker b) loader c) preprocessor d) compiler

614


What is #include cctype?

566


What are linker error?

604