Final answer:
To compare struct variables, you compare them member-wise, meaning each member of the struct is compared with the corresponding member of the other struct.
Step-by-step explanation:
To compare struct variables, you compare them member-wise. This means that each member of the struct is compared with the corresponding member of the other struct. This is because structs are compound types, collections of variables that can be of different types, and comparing them member-wise ensures that each corresponding piece of data is considered. This approach is in contrast to comparing primitive data types (like integers or characters), where you would compare them by value.