Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!cbosgd!ihnp4!inuxc!iuvax!pur-ee!uiucdcs!snail!carroll From: carroll@snail.UUCP Newsgroups: comp.lang.c Subject: Re: C arrays of strings Message-ID: <10700004@snail> Date: Wed, 18-Nov-87 08:30:00 EST Article-I.D.: snail.10700004 Posted: Wed Nov 18 08:30:00 1987 Date-Received: Mon, 23-Nov-87 01:53:14 EST References: <3157@rosevax.Rosemount.COM> Lines: 10 Nf-ID: #R:rosevax.Rosemount.COM:3157:snail:10700004:000:536 Nf-From: snail.CS.UIUC.EDU!carroll Nov 18 07:30:00 1987 That will give you an array of 12 pointers to character. That is, twelve pieces of memory capable of holding the address of a string. Actually having them point at strings is a different matter. If you are going to be doing it dynamically, you can use malloc() to get space, or you can do things like str[3] = "this is a string"; /* compiler allocates space */ Remember that if you use the "" notation, that the compiler allocates the space for the string, and then makes your variable point at it, it doesn't make another copy of it.