#include <stdio.h>
#include <string.h>
/*
 * Program to demonstrate a 2-d array of char
 * Terry Harvey CISC 105 section 98 TA James Jamerson
 */

int main(){

    char words[5][10];
    char s[10];
    int i;

    //s = "spam"; //NONONO cannot assign arrays

    printf("length is %d\n", strlen("spamalamorama"));
    
    for(i = 0; i < 5; i++)
	scanf("%s", words[i]);

    strcpy(words[0], "spamalamorama"); //does this affect words[1]?
    scanf("%s", words[1]);

    for(i = 0; i < 5; i++)
	printf("%s\n", words[i]);
    return 0;
}
