I want to show output with a two dimensional array. I print the value of 10,11,12 but I show only one digit 0,1,2. No idea. How to output with char data type. I don't want to change the char value because I need to assign the other X and Y to number[2][1] = 'X';
My code is here:
#include <stdio.h>
int main(void){
char number[3][4] = {
{'1','2','3','4'},
{'5','6','7','8'},
{'9','10','11','12'}
};
printf("%c",number[2][1]);
return 0;
}
So. I hope you can help me to think how to do it. Thanks you so much!.