Discussion
Which of the following share a similarity in syntax? 1. Union 2. Structure 3. Arrays 4. Pointers
Answer: B
Correct answer: 1 and 2
Unions and structures are declared with identical syntax - keyword, optional tag, a braced list of members - and their members are accessed the same way, with . and ->. Only the storage differs: a structure lays its members out separately, a union overlays them.
No comment is present. Be the first to comment.
Loading…
Post your comment
Please log in or register to post a comment.
Examination Categories
- SSC Exams
- Banking Exams
- Teaching Exams
- Civil Services Exams
- Railways Exams
- Engineering Recruitment Exams
- Defence Exams
- State Government Exams
- Police Exams
- Insurance Exams
- Nursing Exams
- Other Government Exams
- NRA CET
- PG Entrance Exams
- Campus Placement
- MBA Entrance Exams
- CUET and UG Entrance
- Judiciary Exams
- Regulatory Body Exams
- Software Development