#include #include /* need to include for strlen, strcmp, strcpy functions */ #define SIZE 80 int main() { char word[SIZE + 1] = {'h', 'e', 'l', 'l', 'o', '\0'}; /* showing both methods of initialing */ char duplicate[SIZE + 1] = "no way!"; /* and declaring arrays */ /* Display array "duplicate" prior to strcpy */ printf ("\nContents of duplicate array:\n\n%s\n\n", duplicate); strcpy(duplicate, word); printf ("\nContents of word array:\n\n%s\n\n", word); /* Display array "duplicate" after strcpy */ printf ("\nContents of duplicate array:\n\n%s\n\n", duplicate); }