answersLogoWhite

0


Best Answer

auto, extern, static, register, typedef (only formally)

User Avatar

Wiki User

13y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

13y ago

one of these: static, extern, auto, register, typedef (just formally!)

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is meant by the storage class of a variable?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the by default storage class of any variable in c?

automatic storage class


What is the default value of register storage class?

Register storage class is a compiler hint that the variable will be often used, and that it should generate code, if it can, to keep the variable's value in a register.


Storage classes available in c language?

There are four types of storage class or variable in c. 1) auto storage class. 2) register storage class. 3) static storage class. 4) external storage class.


What is class register?

Register storage class is a compiler hint that the variable will be often used, and that it should generate code, if it can, to keep the variable's value in a register.


What is automatic variable and what is its use?

It is a local variable known only to the function in which it is declared. Auto is the default storage class.


Explain the different access storage specifiers available in c?

The storage class specifiers in C and C++ are:autoexternmutableregisterstatictypedefA storage class specifier is used to refine the declaration of a variable, a function, and parameters


Which is the default variable storage class type in a function?

Everything is an object, and "typed" based on assignation. Your variable will be given a class when you declare it to be something, and the class will depend on what value you give the variable. It is always an object though, and its class may change if you change its value.


What is the difference between a static variable a global variable and a local variable?

A static variable is a variable allocated in static storage. A local variable is a variable declared inside a function. A global variable is a variable declared outside of any class or function. Note that local variables and global variables can both be allocated in static storage.


What is the difference between an auto storage class and a register storage class in c?

The register storage class specifier is typically used for a heavily-used primitive data type, such as a loop control variable, and indicates to the compiler that this variable should be stored in a machine register to reduce access time. However, there are very few registers available and they are limited in size, so the compiler is free to ignore the specifier, in which case the variable is treated as if it were specified as an auto storage class. The auto storage class specifier allows you to explicitly declare a variable with automatic storage. Such variables are treated as being local to the block, and will fall from scope when the block ends. Since this is the default behaviour of all local variables, the auto specifier is redundant.


What is static char in C?

static storage class in C tells that: The variable will have the default value as zero. The variable scope will be the file in which it is defined. RaVi


Defining a variable syntax?

[storage-class] [const] [type modifiers] type name [= inital-value] ;


How can a variable be characterized?

name, type, storage class, other attributes (const, volatile), value, address