What is a Structures | How to define Structures | C Language Tutorial @LearningLad
What is a Structures | How to define Structures | C Language Tutorial  @LearningLad
Uploaded June 2020 | Updated November 2026, 4 days ago
In this tutorial you will learn what is a Structure in C Programming language, How to define structures and use them in detail with example.

A Structure is a collection of related variables under one name. When we define a structure in our C Program, we get a new datatype which can contain variables of different datatypes.

Structures are called as derived datatypes because they are created by using other types available in the language.

To define a structure we use the keyword struct.
The syntax is as follows.
struct structure_tag{
structure member1;
structure member2;
....
};
After that we can create the variables from the structure that we have defined.
To access the members of a structure using structure variable we use . ( dot operator ) also called as structure member operator.

Our Website
LearningLad.com

Social Media
Facebook facebook.com/LearningLad
twitter twitter.com/LearningLadEdu
Instagram instagram.com/LearningLadOfficial
What is a Structures | How to define Structures | C Language TutorialHow to Install C C++ Compiler / Tool set  ( gcc g++ gdb Mingw w64 ) Easily in Windows 11 ComputerPointer Declaration in C | int *ptr vs int* ptr & Multiple Pointer VariablesReturn Statement in C Explained | return, Unreachable Code & break vs returnDefining Structures Variables in Different ways in C Programming Language | TutorialSquare Pattern Printing with Diagonals in C Programming Language TutorialHow to install NumPy SciPy Pandas Matplotlib libraries for Python in Windows 10typedef in C Explained | Type Aliases, Enums & Scopefprintf() Function to Write Data to a File :  C Programming Language Video TutorialInternal Working of For, While & Do While Loops in C | Explained with ExamplesCalling One Function From Another in C | Function Control Flow ExplainedHow to Install Code::Blocks IDE & MinGW on Windows for C/C++ Programming
LearningLad |

What is a Structures | How to define Structures | C Language Tutorial

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER