You have a few errors:
So if you want to print what you entered, try this:
printf("a = %d\n", a);
However, if you REALLY want to start putting stuff into arrays, lets talk about a few things...
First of all, arrays are 0 indexed, so instead of array[1] = a, you would do `array[0] = a'
Second, this is casting an int (which is most likely 32-bits) to a char (most likely 8-bits). So the maximum amount you can have in it is 255 (Actually this can get a bit muddy... the standard doesn't specify if char is signed or unsigned. Therefore, the max might actually be 127!).
If you explain what your end goal is, I can expand further.