C | Structure & Union | Question 6

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: (B)

Explanation: A structure variable can be assigned to other using =, but cannot be compared with other using ==

Quiz of this Question

Don’t stop now and take your learning to the next level. Learn all the important concepts of Data Structures and Algorithms with the help of the most trusted course: DSA Self Paced. Become industry ready at a student-friendly price.

My Personal Notes arrow_drop_up