c++ printf vector code example
Example 1: cpp print vector
for(int i = 0; i < vec.size(); i++)
std::cout << vec[i] << ' ';
Example 2: c how to printf a vector
int i;
const int N = 10;
int vett[N];
for(i = 0; i < N; i ++)
printf("\n%d",vett[i]);