Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!columbia!caip!princeton!allegra!alice!ark From: ark@alice.UucP (Andrew Koenig) Newsgroups: net.lang.c Subject: Re: Using strings as immediate character arrays Message-ID: <5967@alice.uUCp> Date: Wed, 20-Aug-86 10:15:22 EDT Article-I.D.: alice.5967 Posted: Wed Aug 20 10:15:22 1986 Date-Received: Thu, 21-Aug-86 02:32:55 EDT References: <790@navajo.STANFORD.EDU> Organization: Bell Labs, Murray Hill Lines: 8 > In a program I have been writing, I have found it nice to > have immediate character arrays, so I could do things like > > cmdchr = "rofq"[menu_selection] ; > > Is this legal and portable? It seems to work. -tom Yes.