Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

concatenate string program in c++

#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: #concatenate #string #program
ADD COMMENT
Topic
Name
8+9 =