You're working on a C program that needs to manipulate and process data about a list of products in a store. Each product has several attributes like name, price, and quantity. What approach would you take to store and process this data efficiently?

  • 2D Array
  • Array of Structures
  • Singly Linked List
  • Vector
An array of structures would be an efficient approach for storing and processing data about products in a store. This data structure allows you to create a custom data type that contains all the attributes of each product (name, price, quantity), making it easy to manage and process product information efficiently.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *