0

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

plz explain it print only h

18th Jan 2021, 6:27 PM
yogesh
yogesh - avatar
1 ответ
+ 2
It prints only H, because *ptr points to the first element of char* ptr, which is H
18th Jan 2021, 6:35 PM
Michal Doruch