two dimensional string array question
Does anyone here have any tips on how to fill a two dimensional string array with a scanf() function. I know this is not the best way to do it, but it's what I'm supposed to use. I'm writing a program that asks the user for 7 strings of input. I need to use the preprocessing directive:
Code:
#define N_Strings 7
so I figured a two dimensional array would work well. Something like:
Could you help me figure out how to read in the 7 strings so they are put in the right spot.