Explain the output of the following code?

main() { char *p; p="Hello"; printf("%cn",*&*p); }

This is one of the tricky question… the output will be only H.

1 Like

@7H3R3DH47
The output will be Hn because in the statement printf("%cn",*&*p); there is “n” after “%c”.

2 Likes

Yes, you’re correct @includehelp, Thanks a lot for correcting me.

2 Likes