finding the length of a c_string in c++ code example Example: char size length c++ char* a = "ABC"; int length = sizeof(a)/sizeof(char);