Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

C++ String Length Example

#include <iostream>  
#include <cstring>  
using namespace std;  
int main()  
{  
    char ary[] = "Welcome to Softhunt.net";  
    cout << "Length of String = " << strlen(ary)<<endl;  
    return 0;  
}
Source by softhunt.net #
 
PREVIOUS NEXT
Tagged: #String #Length #Example
ADD COMMENT
Topic
Name
5+7 =