Yes, structures can be passed to the function by value as passing it by value is easy and there is no difficulty with it, and you can pass any type of data by value as follows:
First, you will define the function to use the type of structure you created
secondly:
Execute any operations necessary to achieve your goals with a function created to print the values of the structure
Third:
When you call the function, a created copy of your structure appears and is used by the function. The structure can be modified within the function
If a function is created with the same or equivalent structure contents, it can be used inside this function, but the values will not appear in the main program because the matter is not reflected in it.
The structure is referred to by the name we give it in the function definition
If the struct contains pointers, the pointers must be referenced and memory changed outside the struct even when the value is passed.