You are designing a C program to handle a database of employees in a company. Each employee has attributes like name, ID, and salary. What would be an efficient way to manage this data?
- Array of Structures
- Linked List of Structures
- Queue
- Stack
An array of structures would be an efficient way to manage data about employees in a company. This data structure allows for easy access and manipulation of employee records, making it suitable for tasks like searching for specific employees or sorting employees by various attributes.
Loading...
Related Quiz
- Pointer arithmetic in C is based on ________, which means that the pointer is incremented or decremented by the size of the data type it points to.
- Which function is used to close a file that has been opened for reading or writing?
- In C, subtracting two pointers that point to elements of the same array yields a result of type ________.
- What is the significance of using pointers when working with structures in C?
- In C, the function ________ is used to allocate memory for an array of elements and initialize them to zero.