Home > front end >  data structures access by index
data structures access by index

Time:04-24

-Vectors Linked Lists Maps Stack

It is little confusing, when it says access, I did not quite understand what it meant. Started thinking about data structures , I know that arrays are indexed. Also know that vector can be accessed by index, but access by index? I think that got me confused

CodePudding user response:

From memory, in c :

  • std::vector,
  • std::string,
  • std::array,
  • std::deque,
  • std::bitset,
  • std::valarray,
  • std::span (Not a container)

So the answer is "Vectors"-ish.

  •  Tags:  
  • c
  • Related