C++ Program to Find Length of String


-

-

Example:

Copied
#include<iostream>
#include<string.h>
using namespace std;
int main()
{
    char str[200] = "webisworld";
    
    cout<<"Length: " << strlen(str);
    
    return 0;
}

Output:

Length: 10