.
the remaining 15 characters will be set to zero.
And you declare the array incorrect ... if you want ch_array = SALLY, you must use one inverted comma ('S' like this) with each of your characters.
For output, use printf ("% s", ch_arry); instead of printf ("% s", ch_arry []);
source
share