[Solved] Why are old values in an array still present? [closed]
In C, strings are stored as null-terminated arrays of characters. This means that there are many ways to represent the same string: everything in the array of characters after the first null byte is ignored, as far as the value of the string is concerned. When the first gets call reads HelloWorld, it stores the … Read more