I have this code in C which takes in bunch of char
s
#include
# define NEWLINE \'\\n\'
int main()
{
char c;
char str[6];
int i =
Writing outside array bounds (actually even just performing the pointer arithmetic/array subscripting, even if you don't use the result to read or write anything) results in undefined behavior. Undefined behavior is not a reported or reportable error; it measn your program could do anything at all. It's very dangerous and you are fully responsible for avoiding it. C is not Java/Python/etc.