guys i need your help. so this is my strcpy program. i am ask to create a program that will defined function that will do the same strcpy function using pointers only. did i do it right or wrong? please help me
#include<iostream>
#include<string.h>
using namespace std;
int main()
{
char string1 [] = " Programming is great";
char string2 [23] = {'\0'};
strcpy (string2, string1);
cout<<"string1:"<<string1<<endl;
cout<<"string2:"<<string2<<endl;
system("pause>0");
return 0;
}