Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!wasatch!helios.ee.lbl.gov!pasteur!ames!ncar!unmvax!nmtsun!dwho From: dwho@nmtsun.nmt.edu (David Olix) Newsgroups: comp.lang.c Subject: Re: Indefinite-length array as member of struct: how? Keywords: char string [] [0] [1] Message-ID: <2948@nmtsun.nmt.edu> Date: 12 Jul 89 19:09:49 GMT References: <7360@c3pe.UUCP> <321@yetti.UUCP> <18492@mimsy.UUCP> Reply-To: dwho@nmtsun.nmt.edu (David Olix) Organization: New Mexico Tech, Socorro NM Lines: 16 In article <18492@mimsy.UUCP> chris@mimsy.UUCP (Chris Torek) writes: >Thus, > > char string[SIZE]; > > *string = ; > >is legal ... I am not one to be picky (usually), but isn't *string (a.k.a. string[0]) of type char? If so, any expression yeilding a result of type char would be legal. Yes, an integer expression would also be legal, but depending on the result of the expression and the sizes of char and int on the particular machine you could end up losing bits. --David Olix (dwho@nmtsun.nmt.edu)