[ create a new paste ] login | about

Link: http://codepad.org/10ylsgPj    [ raw code | output | fork ]

C, pasted on May 7:
1
2
3
4
5
6
7
8
9
10
#include <stdio.h>

int main(int argc, char** argv) {
 int i = 0;
 char val[2][3][2] = {{{'0','1'},{'2','3'},{'4','5'}}, {{'6','7'},{'8','9'},{'a','b'}}};
 for(i=0;i<sizeof(val);++i) {
  printf("%c,", ((const char*)val)[i]); 
 }
 return 0;
}


Output:
1
0,1,2,3,4,5,6,7,8,9,a,b,


Create a new paste based on this one


Comments: