/* Dynamic allocation of character strings */ #include #include #include #define NUMSTR 4 #define STRLNG 80 int main() { int i; char strname[STRLNG]; /* our input buffer */ char *strptr[NUMSTR]; /* an array of string pointers */ printf("Input %d strings\n", NUMSTR); for (i=0; i