During a call to function B() from function A(), B() allocates a 100-char array and fills it several times, including once with a 101-character string and once with a 110 ch
If you're accessing i through a pointer, then the problem is the pointer is garbage.