Character Pointers

Not getting the desired output when I run this code


But the similar thing runs fine here

Hi @isa67719, both the codes run properly. What is your doubt ?