The 2d array:
char c[4][3]={{'a','b','c'},{'d','e','f'},{'g','h','i'},{'j','k','l'}};
As I wanted to get 'def' after running the program, I tried this code:
printf("%s\n",c[1]);
However, the result was 'defghijkl\262'. What's wrong with my code?