



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
The concepts of arrays and vectors in C++. It starts with the definition of a one-dimensional array and its declaration, initialization, and accessing values. Then, it explains two-dimensional arrays and how to declare and initialize them. The document also covers passing arrays to functions and array manipulations such as searching and sorting. Finally, it introduces the vector class type, which is more flexible than arrays since it can grow and shrink in size during runtime. how to declare a vector object and perform basic operations such as insertion, deletion, and getting the value.
Typology: Lecture notes
1 / 7
This page cannot be seen from the preview
Don't miss anything!




➢ a structured datatype is composed of several data items in which each data item a simple data type One Dimensional → Array is a group of similar datatypes with a fixed number of components. → One-dimensional array - collection of similar datatypes in list form
C-style String →