vectorName.push_back(value);
std::vectorIn the above code, we first create an empty vector of integers named myVector. Then we use the push_back function to add 1, 2, and 3 to the end of the vector, one by one. This function is a part of the C++ Standard Library and can be used without any additional package or library.myVector; myVector.push_back(1); myVector.push_back(2); myVector.push_back(3);