Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

strlen c++ program

#include<iostream>
#include<cstring>
using namespace std;
int main()
{
	char first[500];
	cout<<"what is your favorite word : ";
	cin>>first;
	cout<<(strcat(first," Is a good choice"))<<endl;
	cout<<"Size ;"<<(strlen(first));
	return 0;
}
 
PREVIOUS NEXT
Tagged: #strlen #program
ADD COMMENT
Topic
Name
5+7 =