#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'}; char duplicate[SIZE + 1]; strcpy(duplicate, word); /* Using format specifier %s is easier to print entire string (in array) horizontally... */ printf ("\nContents of word array:\n\n%s\n\n", word); printf ("\nContents of duplicate array:\n\n%s\n\n", duplicate); }