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
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.
Recommended Posts:
- C | Structure & Union | Question 1
- C | Structure & Union | Question 2
- C | Structure & Union | Question 10
- C | Structure & Union | Question 4
- C | Structure & Union | Question 5
- C | Structure & Union | Question 7
- C | Structure & Union | Question 8
- C | Structure & Union | Question 9
- C | Structure & Union | Question 10
- Output of C programs | Set 44 (Structure & Union)
- Anonymous Union and Structure in C
- Output of C++ programs | Set 41 (Structure and Union)
- C | Loops & Control Structure | Question 1
- C | Loops & Control Structure | Question 2
- C | Loops & Control Structure | Question 3
- C | Loops & Control Structure | Question 4
- C | Loops & Control Structure | Question 5
- C | Loops & Control Structure | Question 6
- C | Loops & Control Structure | Question 7
- C | Loops & Control Structure | Question 8

