In C, the only operation that can be applied to struct variables is assignment. Any other operation (e.g. equality check) is not allowed on struct variables.
For example, program 1 works without any error and program 2 fails in compilation.
Operations on struct variables in C : https://www.geeksforgeeks.org/g-fact-68/