When stuffing my multidimensional array with characters, I found out that the array is stuffed all the way to its last amount of storage. For example. If I had an array blah, and the word I stuffed was "Jon" (with the \0 character), then it would print out (if say the * was the junk character because I can't print the character it is showing) "****Jon" if I did something like
I could print it out using a For loop, however, I want the value of blah[x] to not have any junk/null characters.Code:x = 1; printf("%s", blah[x]);
I there any way to make it so that the array isn't stuffed from the back way? Any ways to alter this in code?