Recent content by jpatterson

  1. J

    Why does gets() cause an access violation with char *array[10]?

    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.
  2. J

    Why does gets() cause an access violation with char *array[10]?

    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...