run time error while printing strings.

Why this small simple code not giving the o/p. JAQr4U - Online C++ Compiler & Debugging Tool - Ideone.com
Also declaring the string like
char left[4]={‘0’,‘0’,‘0’,‘0’};
gives rte!!ReyEq9 - Online C++ Compiler & Debugging Tool - Ideone.com
y so??
Its a part of one of my codes.