Recent content by jpatterson

  1. J

    Creating & Populating String Arrays in C

    Flip- Thanks. This was a big help.
  2. J

    Creating & Populating String Arrays in C

    I'm sorry, I wasn't being clear. What I'm trying to do is create an array of strings. I.e. string1 string2, string3. I was guessing at *array_name[10], but apparently that just creates one string (with room for 10 characters). How do I create the array of strings.
  3. J

    Creating & Populating String Arrays in C

    I'm new to C, so this is probably a dumb question, but I'd appreciate help. If I create (or think I create, anyway) an array of strings with: char *array_name[10] and then try to populate an element of the array with: gets(array_name[0]) everything compiles ok, but I get a runtime...
Back
Top