Computer Science, asked by pratikshadegave, 3 months ago

Which of the following operators can
be applied on structure variables?​

Answers

Answered by ankesh274702
1

Answer:

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.

Answered by Anonymous
0

Assignment (=) operator can be applied on structure variables.

A structure variable in the C programming language is a method of storing various different data types under one name. By using a structure variable we can store different data types all under one roof.

Assignment operators are used to assigning values to the variables.

Using the assignment operators we can assign values to the structure variables, but we cannot use comparison structures to compare it with other variables.  

Similar questions