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

If storage class is missing in the array definition, by default it will be taken to be ____________.

A
Automatic
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
External
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
Static
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
Either automatic or external depending on the place of occurrence
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
Open in App
Solution

The correct option is D Either automatic or external depending on the place of occurrence

If storage class is missing in the array definition, by default it will be taken to be either automatic or external depending on the place of occurrence.

If it is coming within a function, the storage class will be taken to be automatic. Otherwise external.

Every C variable has a storage class and a scope. It also determines the scope which specifies the part of the program over which a variable name is visible, i.e. the variable is accessible by name.

An array is a collection of data items, all of the same type, accessed using a common name.


flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Simple Interest
MATHEMATICS
Watch in App
Join BYJU'S Learning Program
CrossIcon