Q:

Describe the differences between a map and a vector

0

Describe the differences between a map and a vector.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

A `map` is an associative container which contains an associative array of key-value pairs. Values are found by key. The key doesn't have to be integer.

A `vector` is an sequential container which contains a normal array of values. Values are found by position. The position is integer.

 

 

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now