Problem Solving with C++ (10th Edition)
Problem Solving with C++ (10th Edition)
10th Edition
ISBN: 9780134448282
Author: Walter Savitch, Kenrick Mock
Publisher: PEARSON
Question
Book Icon
Chapter 18.2, Problem 7STE
Program Plan Intro

vector”:

  • “vector” stores elements at contingous memory locations like an array.
  • It contains random access iterator.

“list”:

  • “list” stores elements at non contiguous memory location that is internally uses a doubly linked list.
  • It only contains bidirectional iterator.

Blurred answer
Students have asked these similar questions
What is the difference between an array and a linked list?
What is the primary difference between a list and a tuple?
What are some of the similarities and differences between strings and lists?
Knowledge Booster
Background pattern image
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
  • Text book image
    Systems Architecture
    Computer Science
    ISBN:9781305080195
    Author:Stephen D. Burd
    Publisher:Cengage Learning
Text book image
Systems Architecture
Computer Science
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Cengage Learning