C Structures – Access the members of a Struct
structure_pointer_variable -> member Let us consider an example: struct student { int roll_number; int total_marks; float attendance_percentage; }; struct student s = {10, 95, 98.45}; struct student *p;…
Press Esc to close
Archive
structure_pointer_variable -> member Let us consider an example: struct student { int roll_number; int total_marks; float attendance_percentage; }; struct student s = {10, 95, 98.45}; struct student *p;…
In this tutorial, we are going to learn about union and how is it different from a structure. Union in C: A union is also a collection of different data…