So you are wanting to output the indices not the contents of b right? Because you talk about [0][0][1] and such but yet you are indexing into the b array in your example. I tweaked your code to get it to display the indices. Is this what you intended?
Code:
#include<iostream>
#include <climits>
using namespace std;
int main() {
int c,i,r;
int b[3][1][5]={{0,1,2},{0},{0,1,2,3,4}};
r = 0;
for (c=0;c<3;c++) {
for( i=0;i<5;i++) {
cout<< c << r << i << endl;
}
cout << endl;
}
return 0;
}
I switched the order of your for loops for starters and then just displayed the index variables.