+ 8
Pointer to string
char* ptr="sololearn" cout<<*(ptr+5); what does it mean?
2 odpowiedzi
+ 1
You can think of it as a index of array.
*(ptr + 0) and ptr[0] are same expressions.
+ 5
@selcuk tq
char* ptr="sololearn" cout<<*(ptr+5); what does it mean?