Wednesday, September 7, 2016

Tags

PROGRAM TO FIND NUMBER OF CHARACTERS IN A STRING:
#include<iostream>
#include<cstring>
using namespace std;
main()
{
char a[100];
int l;
cout<<"ENTER STRING";
cin.getline(a,100);
l=strlen(a);
cout<<"\nTOTAL CHARACTERS ARE "<<l;
}