What are Storage Classes in C ?

Answer Posted / ramiz n sayyed

if we declare any variable its type and storage class is
also be declare.storage class tells us that
1.where the variable is stored.
2.what is its initial value.
3.what is the scope of the variable.
4.and last is what is the life of the variable.
THERE ARE FOUR TYPES OF STORAGE CLASS IN C-

1.AUTOMATIC STORAGE CLASS
2.REGISTER STORAGE CLASS
3.STATIC STORAGE CLASS
4.EXTERNAL STORAGE CLASS

Is This Answer Correct ?    8 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What will the code below print when it is executed?   int x = 3, y = 4;         if (x = 4)                 y = 5;         else                 y = 2;         printf ("x=%d, y=%d ",x,y);

1342


Explain about block scope in c?

653


1. Write a function to display the sum of two numbers in the following ways: By using (i) pass by value (ii) pass by address a. function with argument and with return value b. function with argument and without return value c. without argument , with return value d. without argument , without return value Note: Use pass by address.

2328


What is context in c?

531


How main function is called in c?

620






What is #include cctype?

570


What are the different types of linkage exist in c?

603


What is malloc return c?

593


What is static volatile in c?

568


What is the use of pragma in embedded c?

583


Write a c program to demonstrate character and string constants?

1674


What is string function c?

558


write a program that types this pattern: 12345678987654321 12345678 87654321 1234567 7654321 123456 654321 12345 54321 1234 4321 123 321 12 21 1 1

3256


provide an example of the Group by clause, when would you use this clause

1698


What does %p mean c?

617