vector size in for loop code example
Example: vector size for loop
vector<int> arr(100, 0);
for (size_t i = 0; i != arr.size(); ++i){
// do something with arr[i]
}
vector<int> arr(100, 0);
for (size_t i = 0; i != arr.size(); ++i){
// do something with arr[i]
}