In a real-world application, we need to group different types of logically related data. For example: If we want to create a record of students that consists of name, roll no, and marks. Then to store such records we use structure. The structure is a collection of heterogeneous data types which are grouped together under a single name. A structure can contain any valid data types like int, char, float, or even arrays and other structures. Each variable in structure is called structure member. To define a structure, we use the 'struct' keyword.
In this “Structure and Unions – C Programming” you will learn about the following topics:
- Definition of Structure
- Structure Initialization
- Processing Structure and Accessing Member of Structure
- Tag Name
- Array of Structure
- Structure Within Another Structure/Nested Structure
- Pointer to Structure
- Passing Structure Members to Function
- Passing Whole Structure to Function
- Passing Structure Pointer to Function
- Passing Array of Structure to Function
- Linked List
- Applications of Linked List in Computer Science
- Applications of Linked List in Real World
- Applications of Circular Linked Lists
- Introduction to Union
- Difference between Structure and Union
==== Point to Note ====
This article Structure and Unions – C Programming is contributed by Pawan Tiwari, a student of LA GRANDEE International College (LGIC).
If you like to contribute, you can mail us BCA Notes, BCA Question Collections, BCA Related Information, and Latest Technology Information at [email protected].
See your article appearing on BCA Notes (Pokhara University) main page with your designation and help other BCA Students to excel.
Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above.
0 Comments