New course! Every coder should learn Generative AI!
Try a free lesson+ 8
Pointer to string
char* ptr="sololearn" cout<<*(ptr+5); what does it mean?
2 Answers
+ 1
You can think of it as a index of array.
*(ptr + 0) and ptr[0] are same expressions.
+ 5
@selcuk tq