Computer Science, asked by bidyajitkhagokpam, 1 year ago

in how many ways and how a structure can be declared​

Answers

Answered by Zisha7
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

  1. Structure structure_name
  2. {
  3. member definitions;
  4. } structure _variables ;

  • Local Definition with global Declaration

  1. Structure structure_name
  2. {
  3. member definitions;
  4. };
  5. int main()
  6. {
  7. structure structure_name structure_variables
  8. program_code;
  9. returns ();
  10. }

Similar questions