Open In App

C | Structure & Union | Question 6

Like Article
Like
Save
Share
Report

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

(A)

Equality comparison ( == )
 

(B)

Assignment ( = )
 

(C)

Both of the above
 

(D)

None of the above
 



Answer: (C)

Explanation:

Both of the above: In C, both equality comparison (==) and assignment (=) operators can be applied to structure variables, allowing for comparison and assignment of values between structures when their members support it. 


Quiz of this Question
Please comment below if you find anything wrong in the above post


Last Updated : 28 Jun, 2021
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads