STACK vs VECTOR

Revision en1, by AMIT-_-PANDEY, 2023-12-07 22:39:02

If in a vector we can use use push_back() and pop_back() and in a stack we do push and pop from the rear end of the stack . So what is the significance of stack over a vector ? Is it size related or something else ?

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English AMIT-_-PANDEY 2023-12-07 22:39:02 232 Initial revision (published)