Answers for "2 variables in for loop cpp"

C++
1

c++ for loop multiple variables

// Need to initialize both x and y individually
for(int x=0, y=0; x + y < z; x++, y++) { /* code */ }
Posted by: Guest on October-12-2020

Code answers related to "2 variables in for loop cpp"

Browse Popular Code Answers by Language