---
title: "Advantage of using structure"
subject: "Computer Programming"
chapter: 8
key: "semester_1/computer_programming:advantages-of-structure"
source: https://www.bctengineer.com/q/semester_1/computer_programming/advantages-of-structure
site: BCT Engineering
---

# Advantage of using structure

Computer Programming · Chapter 8: Structures

- Asked in: 2069 Chaitra, 2 marks
- Video: [Introduction to Structure in C Programming in Hindi with best examples](https://www.youtube.com/watch?v=vqtyDXFlS98) — Gate Smashers
- Answer checked by Claude Opus 5.5 (high effort) on 2026-10-14
- Page: https://www.bctengineer.com/q/semester_1/computer_programming/advantages-of-structure
- Whole chapter: https://www.bctengineer.com/md/semester_1/computer_programming/chapter-8

## Question

What is the advantage of using structure?

## Short answer

It groups mixed-type data of one entity under a single name; allows whole-record assignment, function arguments, and returns; supports arrays of records for files/databases; improves program organization and forms the basis of data structures like linked lists.

## Answer

- It groups data of different types (name, roll, marks) of one entity under a single name.
- A whole record can be assigned, passed to a function and returned in one step.
- An array of structures can store many records, which is useful for files and databases.
- It makes the program more organised and readable, and is the base of data structures such as linked lists.

## Check yourself

The answer's key points as multiple-choice questions, with the correct option and why.

1. Which is an advantage of a structure?
   A. It groups data of different types for one entity under a single name
   B. It stores only integers
   C. It removes the need for variables
   D. It makes data hidden from the compiler
   Answer: A. Grouping mixed types is the main benefit. (Key point: Advantage)

2. What can be done with a whole record?
   A. Only print it with %s
   B. Assign it, pass it to a function and return it in one step
   C. Nothing
   D. Only compare with ==
   Answer: B. Structures can be copied and passed as units. (Key point: Record handling)

3. An array of structures is useful for?
   A. Storing one integer
   B. Replacing loops
   C. Storing many records, as in files and databases
   D. Reading characters only
   Answer: C. It models a table of records. (Key point: Use)

## Related in other subjects

- [Tensile tests; split test advantage; h/d ratio](https://www.bctengineer.com/question.md?key=semester_5%2Fconcrete_technology_and_masonry_structure%3Atensile-tests-split-advantage-hd) — Concrete Technology and Masonry Structure, chapter 5
- [Splitting tensile test and its advantage](https://www.bctengineer.com/question.md?key=semester_5%2Fconcrete_technology_and_masonry_structure%3Asplitting-test-advantage) — Concrete Technology and Masonry Structure, chapter 5
