CodePudding user response:
Malloc () allocates memory, strcpy () copy the stringCodePudding user response:
#includeusing namespace std;
Const int inf=0 x3f3f3f3f;
Int main ()
{
[20] char a, b [20].
The scanf (" % s ", a);
Strcpy (b, a);
Printf (" % s ", b);
return 0;
}