Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

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 */ }
 
PREVIOUS NEXT
Tagged: #loop #multiple #variables
ADD COMMENT
Topic
Name
3+6 =