#include #include using namespace std; char * strcat ( char * destination, const char * source, int ); int main() { char str[20] = "hi"; char *pStr = str; cout << pStr << endl; // prints hi char str2[20]; str2[0]='b'; str2[0]='b'; str2[1]='y'; str2[2]='e'; str2[3]='\0'; // what's wrong with: //int len = str2.length(); //use strlen function! //cout<<"length="< cpstr) //compares contents cout<<" first comes first"<"g") cout<<"bye is greater than g"< destSize) //not enough space! return destination; int j=0; while (source[j]!='\0') { destination[i]=source[j]; i++; j++; } destination[i]='\0'; return destination; }