Ok Im able to read in a double array of numbers, and print them out just fine with this code:Code:
array[x][y];
But when I try to flip the array horizontally, it doesnt work.. this is the code i use:Code:for (i=0; i<x; i++){
for(j=0; j<y; j++){
array[i][j] = array[i][j];
printf("%d\n", array[i][j]);
}
j=0;
}
Code:for (i=0; i<x; i++){
for(j=y-1; j>0; j--){
array[i][j] = array[i][j];
printf("%d\n", array[i][j]);
}
j=y-1;
}
what should i do to make it flip horizontally?