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
Explain what is the benefit of using #define to declare a constant?
What is 1f in c?
Why c is called a mid level programming language?
What are the types of data types and explain?
the factorial of non-negative integer n is written n! and is defined as follows: n!=n*(n-1)*(n-2)........1(for values of n greater than or equal to 1 and n!=1(for n=0) Perform the following 1.write a c program that reads a non-negative integer and computes and prints its factorial. 2. write a C program that estimates the value of the mathematical constant e by using the formula: e=1+1/!+1/2!+1/3!+.... 3. write a c program the computes the value ex by using the formula ex=1+x/1!+xsquare/2!+xcube/3!+....
What is the best way to store flag values in a program?
What are type modifiers in c?
Write a program to reverse a given number in c?
What is the purpose of realloc()?
how can i access hard disk address(physical address)? are we access hard disk by using far,near or huge pointer? if yes then please explain.....
What is typeof in c?
An expression to whose value an operater is applied a) operand b) variable c) constant d) all of the above
What is difference between union All statement and Union?
What is dynamic dispatch in c++?
What is difference between class and structure?