What are Storage Classes in C ?

Answer Posted / yogeshwar parashar

definition of storage class:-
WHEN WE DEFINE ANY VARIABLE IN COMPUTER IT'S REQUIRE
SOME PHYSICAL LOCATION, TWO TYPES OF LOCATION HAS COMPUTER
1)COMPUTER MEMORY
2)CPU REGISTER.
STORAGE CLASS HAS SOME FEATURES FOR EVERY VARIABLE LIKE
A)LOCATION OR VARIABLE
B)INITIAL VALUE OF THE VARIABLE, IF IT IS NOT DEFINE THEN
WE FIND BY DEFAULT VALUE OR GARBEGE VALUE.
C)SCOPE (VISIBILITY) OF THE VARIABLE.
D)LIFE OF THE VARIABLE

THERE ARE FOUR TYPES OF STORAGE CLASSES IN C PROGRAMMING.

A) AUTOMATIC STORAGE CLASS
B) REGISTER STORAGE CLASS
C) STATIC STORAGE CLASS
D) EXTERNAL STORAGE CLASS
THANK YOU...
YOGESHWAR PARASHAR

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Give basis knowledge of web designing ...

1567


What are the different categories of functions in c?

639


Can you think of a logic behind the game minesweeper.

2000


Why enum is used in c?

515


An arrangement of information in memory in such a way that it can be easily accessed and processed by a programming language a) string b) data structure c) pointers d) array

681






When reallocating memory if any other pointers point into the same piece of memory do you have to readjust these other pointers or do they get readjusted automatically?

797


why wipro wase

1821


What is union and structure in c?

606


What is wrong with this code?

687


How can I send mail from within a c program?

575


Explain about block scope in c?

655


Why do we use static in c?

627


Calculate the weighted average of a list of n numbers using the formula xavg = f1x1+f2x2+ ….+ fnxn where the f’s are fractional weighting factors, i.e., 0<=fi<1, and f1+f2+….+fn = 1

3642


How can you call a function, given its name as a string?

707


What is static memory allocation? Explain

625