A struct is a user-defined data type that groups related variables together.
It allows you to represent complex data like a person, student, or product.
After defining a struct, you can create variables of that type.
You can assign values to struct members using the dot (.) operator.
Use the dot operator to access struct fields.
typedef allows you to create a shorter name for a struct.
You can initialize structs when creating them.
You can create arrays of structs to store multiple records.
Structs can be passed to functions as arguments.
You can use pointers to access structs.
Use the arrow operator (->) instead of dot.
Structs allow you to organize related data into one unit.
Be careful with these:
string.h for strcpyCreate a struct Student with name and grade, then print its values.