Introduction
Structs group related data together. Accessing struct fields lets you get or change specific pieces of that data.
You want to store information about a person, like name and age, and then read or update those details.
You have a product with price and quantity, and you need to calculate total cost using those fields.
You want to organize settings for a game or app and access each setting separately.
You receive data from a sensor and want to read specific measurements stored in a struct.