Answers for "c++ length of char*"

C++
2

c++ length of char*

#include <iostream>
#include <string.h>

using namespace std;

int main()
{
    char *str = "ABC";
    cout << strlen(str) << endl;
    return 0;
}
Posted by: Guest on August-01-2020

Code answers related to "c++ length of char*"

Browse Popular Code Answers by Language