Structures in C

C PROGRAMS ON STRUCTURES

In C, Structure is a collection of different data types which are grouped together and each element in the Structure is called a member. If you want to access the members of the structure in C, then structure variable should be declared.

‘struct’ keyword is used to create a structure.

In simple words, a structure can store different data types together.

Syntax :-

struct player{

char name[30];

char team_name[30];

int runs;

}

You will get to know more while using it in programs which are given below.

Share Me!
  •  
  •  
  •  
  •  
  •  
  •