#includeIn this example, we first initialize a vector called myArray with 3 integers 1, 2 and 3. Then, we use the push_back() function to add integer 4 to the end of the vector. Finally, we use a for loop to print out all the integers in the vector. The package library used in this example is the standard library vector container.#include using namespace std; int main() { vector myArray = {1, 2, 3}; myArray.push_back(4); for (int i = 0; i < myArray.size(); i++) { cout << myArray[i] << " "; } }