/*-------------------------------------------------------------------*/ /* hellosp.c */ /*-------------------------------------------------------------------*/ #include #define MAX_NAME_LENGTH 100 static char pcName[MAX_NAME_LENGTH]; int main(int argc, char *argv[]) /* Read a name from stdin, and write a greeting that uses that name to stdout. */ { printf("What is your name? "); scanf("%s", pcName); printf("Hello %s.\n", pcName); return 0; }