in how many ways and how a structure can be declared
Answers
Answered by
3
Answer:
A structure in C programming is a collection of heterogeneus data clubbed together into a single entity. To define and declare a structure, C language provides the following methods.
- Global Declaration
- Structure structure_name
- {
- member definitions;
- } structure _variables ;
- Local Definition with global Declaration
- Structure structure_name
- {
- member definitions;
- };
- int main()
- {
- structure structure_name structure_variables
- program_code;
- returns ();
- }
Similar questions