Syntax to initialize a vector of integers in C++ is:
vector<int> vec;
You add elements in the vector gradually by using the push_back(n)
function.
Syntax to initialize a basic array of integers in C++ is:
int arr[4] = [3, 6, 1, 8];
Free Resources