+ 5

Weird result in a char array in c

So, i decided to see if there is a character after the specified length in an array. I was taught that there is only one more which is the null pointer but the result in the code below confused me, I got random characters in a char array, look at my code below. https://code.sololearn.com/crtrcd0SFsdU/?ref=app

18th Feb 2020, 6:52 PM
Yuvraj Singh
Yuvraj Singh - avatar
2 Respostas
18th Feb 2020, 7:24 PM
Denise Roßberg
Denise Roßberg - avatar
0
Thanks
18th Feb 2020, 7:24 PM
Yuvraj Singh
Yuvraj Singh - avatar