Horje
loop over multidimensional array c++ Code Example
loop over multidimensional array c++
int arr[2][3] = {
  {1,2,3}, 
  {4,5,6}
};
for(int i=0 ; i<sizeof(arr) / sizeof(arr[0]) ; i++){
	for(int j=0 ; j<sizeof(arr[i])/sizeof(arr[i][0]) ; j++){
		cout<<"2D array have: "<< arr[i][j]<<endl;
	}
}




Cpp

Related
c++ measure time of function Code Example c++ measure time of function Code Example
howt o initialize 3d vector in c++ Code Example howt o initialize 3d vector in c++ Code Example
how to convert string to wchar_t in c++ Code Example how to convert string to wchar_t in c++ Code Example
qt get hexa value from qstring Code Example qt get hexa value from qstring Code Example
c++ primality test Code Example c++ primality test Code Example

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