Hi everyone. I have the following little function:
It outputs the following:Code:int main() { int counter; int array[9] = { 1, 2, 3, 4, 5, 6, 7, 8, 9 }; for( counter = 0; counter <= 8; counter++ ) { printf( "[%d]\n", array[counter] ); } return 0; }
That output is great but I would like to know how to get the output so that it is as follows:Code:[1] [2] [3] [4] [5] [6] [7] [8] [9]
Any help is greatly appreciated. Thanks!Code:[1][2][3] [4][5][6] [7][8][9]