If you want to print a string you must use the
printf
format character for strings which is '%s' and pass the pointer to the string:
printf("%s",a);
You are printing a single character which is nor part of your string
a
:
a[0] = 'l';
a[1] = 'k';
a[2] = 0;