Quote Originally Posted by Salem View Post
Maybe you can use %s instead of %c in the last case.

Or learn to use your compiler.
Code:
$ gcc -Wall foo.c
foo.c: In function ‘main’:
foo.c:8:12: warning: format ‘%c’ expects argument of type ‘int’, but argument 2 has type ‘char *’ [-Wformat=]
     printf(" %c \n", value );
            ^
Really I made silly mistake I didn't notice this is happening because of the format specifier