char size length c++

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

Also in C++: