Question
Asked by:
$1.00 Using pointers in C
- From Engineering: Computer-Engineering
- Closed, but you can still post tutorials
- Due on Mar. 03, 2009
- Asked on Mar 02, 2009 at 4:20:16PM
Q:Write a program to read in 6 strings from the keyboard, and then print them in reverse order on the
screen, using the following directions.
Reverse order means that if you enter six words, the sixth word will be printed first, the fifth will be
printed second, and so on.
The strings will be stored in an array of 6 char pointers. The array should be declared as:
char *str_array[6];
This type of array only stores pointers to a string, and not the strings themselves. You must allocate space
for each string using malloc.



