C Programming Tutorial
Computer Tutorial

Uses of Structures



Uses of Structures

Where are structures useful? The immediate application that comes to the mind is Database Management. That is, to maintain data about employees in an organization, books in a library, items in a store, financial accounting transactions in a company etc. But mind you, use of structures stretches much beyond database management. They can be used for a variety of purposes like:
1. Changing the size of the cursor
2. Clearing the contents of the screen
3. Placing the cursor at an appropriate position on screen
4. Drawing any graphics shape on the screen
5. Receiving a key from the keyboard
6. Checking the memory size of the computer
7. Finding out the list of equipment attached to the computer
8. Formatting a floppy
9. Hiding a file from the directory
10. Displaying the directory of a disk
11. Sending the output to printer
12. Interacting with the mouse

And that is certainly a very impressive list! At least impressive enough to make you realize how important a data type a structure is and to be thorough with it if you intend to program