Check out example codes for "char size length c++". It will help you in understanding the concepts better.

Code Example 1

char* a = "ABC";
int length = sizeof(a)/sizeof(char);

Learn ReactJs, React Native from akashmittal.com