Horje
C++, for-loop over an array array Code Example
C++, for-loop over an array array
/*sizeof(array_scores) is a pointer to array_scores[], 
and has to be divided by each first-object[0]*/
for(int a = 0; a < sizeof(array_scores)/sizeof(array_scores[0]); a = a + 1 ){
	cout << "for loop, a = " << array_scores[a] << " at position " << a << "\n";
}
//https://stackoverflow.com/questions/20234898/correct-way-of-looping-through-c-arrays




Cpp

Related
sort a vector c++ Code Example sort a vector c++ Code Example
c++ std::find with lambda Code Example c++ std::find with lambda Code Example
long pi in c++ Code Example long pi in c++ Code Example
cpp map insert Code Example cpp map insert Code Example
Find the biggest element in the array Code Example Find the biggest element in the array Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9