DEFINING A STRUCTURE
Definition :
A structure is a user-defined data type that allows you to group together different types of variables under a single name. It is similar to a record in other programming languages. The variables within a structure are called members or fields.
Syntax of Structure:
struct structure_name {
data_type member1;
data_type member2;
// more members if needed
};
Example :
#include <stdio.h>
// Defining a structure named 'Student'
struct Student {
char name[50];
int age;
float mark;
};