Answers for "c++ array in loop"

C++
0

c++ loop through array

CustomType customArray[]{5,6,7,8,9};
for (auto index = 0; index < std::extent_v<decltype(customArray)>; ++ index) {
// do stuff
}
Posted by: Guest on January-21-2022

Browse Popular Code Answers by Language