Using strings as immediate character arrays

Andrew Koenig ark at alice.UucP
Thu Aug 21 00:15:22 AEST 1986


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



More information about the Comp.lang.c mailing list