C++ Examples
C++ ExamplesPrograms with output

C++ Program to Find Length of String


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

Share this page on:

Was this page helpful ?

Let us know how we did!

Subscribe Email Updates

to get latest update