/* string1.c author: Mark Stehlik purpose: to demo - various "string" forms - string I/O and '\0' delimiter */ #include #include #define N 10 int main(int argc, char *argv[]) { char fName[N]; /* what does this do in memory? */ char name[] = "Mark"; /* and this? */ char *prof = "Stehlik"; /* and what about this? */ printf("Enter your first name (10 char max): "); scanf("%s", fName); printf("You entered: %s\n", fName); return 0; }