wiz-icon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

Storage class defines __________________.

A
The data type
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
The scope
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
The scope and performance
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
D
The scop, performance and data type
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution

The correct option is C The scope and performance

Storage class defines the scope and performance.

Storage class of variables includes the scope, visibility and life-time which help to trace the existence of a particular variable during the run time of a program. There exist four types of storage class in C: auto, register, static and extern.

1) Auto storage class:-Auto is default storage class for all local variables.

2)Register storage class:-Register storage class tells the C compiler to store a variable in register instead of memory.

3)Static storage class:-We use static keyword to define static variables and functions. It instructs C compiler to store a static variable in memory till the end of program. Rather than creating and destroying a variable on each function call.

4) Extern storage class:-We use extern (external) storage class to define reference to a global variable or function defined in some other C program. The extern modifier declares a link to its original variable or function declaration.


flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Database Structuring
ACCOUNTANCY
Watch in App
Join BYJU'S Learning Program
CrossIcon