C Programming - Structures, Unions, Enums - Discussion

Discussion Forum : Structures, Unions, Enums - Yes / No Questions (Q.No. 7)
7.
By default structure variable will be of auto storage class
Yes
No
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
6 comments Page 1 of 1.

Mohamed mustafa said:   5 years ago
No, it depends on where we will define it inside function or outside "global ".

How come it will be auto variable when we declare it outside main?

Archana said:   6 years ago
Well explained. Thanks @Umesha.

Ishita said:   6 years ago
Can't get it. Please, anyone, explain in detail.

Umesha said:   1 decade ago
Default initialize will be an unpredictable value, which often called garbage value so it is a auto storage class.

Zankrut said:   1 decade ago
I think structure is of extern storage class. and and structure's instances are of auto class. variables are definitely of auto type. if you try to access them outside the function block in which they're defined, it will cause error. I might be wrong.

Manish said:   1 decade ago
Any one with explanation ?

Post your comments here:

Your comments will be displayed after verification.