can i initialize multiple variables in a for loop c++ code example
Example: 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 */ }
// Need to initialize both x and y individually
for(int x=0, y=0; x + y < z; x++, y++) { /* code */ }