Pass Structs to Functions in C: Pass by Value vs Pass by Reference
In C programming, a struct groups related variables under a single type name. When passing a struct into a function, you can pass it by value (making a complete copy of the data) or by reference (passing a pointer).