#include #include using namespace std; int main() { char *str = "ABC"; cout << strlen(str) << endl; return 0; }
3. strlen(char*) will not include the null character at the end