New course! Every coder should learn Generative AI!
Try a free lesson0
#include<stdio.h> int main() { char *ptr = "Hello"; printf("%c\n", *&*ptr); return 0; }
plz explain it print only h
1 Answer
+ 2
It prints only H, because *ptr points to the first element of char* ptr, which is H