c 2b 2b 2c for loop over an array array

Solutions on MaxInterview for c 2b 2b 2c for loop over an array array by the best coders in the world

showing results for - "c 2b 2b 2c for loop over an array array"
Charlotte
25 Jul 2017
1/*sizeof(array_scores) is a pointer to array_scores[], 
2and has to be divided by each first-object[0]*/
3for(int a = 0; a < sizeof(array_scores)/sizeof(array_scores[0]); a = a + 1 ){
4	cout << "for loop, a = " << array_scores[a] << " at position " << a << "\n";
5}
6//https://stackoverflow.com/questions/20234898/correct-way-of-looping-through-c-arrays