#include<stdio.h> int main() { char *ptr = "Hello"; printf("%c\n", *&*ptr); return 0; } | SoloLearn: Learn to code for FREE!

0

#include<stdio.h> int main() { char *ptr = "Hello"; printf("%c\n", *&*ptr); return 0; }

plz explain it print only h

1/18/2021 6:27:06 PM

yogesh

1 Answer

New Answer

+2

It prints only H, because *ptr points to the first element of char* ptr, which is H