which of the keywords have the scope with a function body
a- register and auto
b- auto and extern
3- static and extern
d- static and register
Answers
Answered by
1
Answer:
A storage class represents the visibility and a location of a variable. It tells from what part of code we can access a variable. A storage class is used to describe the following things:
The variable scope.
The location where the variable will be stored.
The initialized value of a variable.
A lifetime of a variable.
Who can access a variable?
Thus a storage class is used to represent the information about a variable.
NOTE: A variable is not only associated with a data type, its value but also a storage class.
There are total four types of standard storage classes. The table below represents the storage classes in 'C'.
Attachments:
Similar questions