Mega Code Archive
Categories
/
C++
/
Data Type
Using the strcpy function
#include
#include
#define iSIZE 20 main( ) { char s[iSIZE]="Initialized String!",d[iSIZE]; strcpy(d,"String Constant"); printf("%s\n",d); strcpy(d,s); printf("%s\n",d); return(0); }