Path: utzoo!utgpu!water!watmath!clyde!rutgers!cmcl2!brl-adm!umd5!mimsy!chris From: chris@mimsy.UUCP (Chris Torek) Newsgroups: comp.lang.c Subject: Re: Question about type casting Message-ID: <10168@mimsy.UUCP> Date: 14 Jan 88 01:59:59 GMT References: <5080009@hpfcdc.HP.COM> <546@xyzzy.UUCP> Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742 Lines: 13 In article <546@xyzzy.UUCP> throopw@xyzzy.UUCP (Wayne A. Throop) writes: [regarding the cast] >> ((int [1]) i) [0] >But clearly K&R did not intend to allow anything to be cast to array >type, since casts are defined as conversions, and the allowable >conversions do not include any that result in arrays. Or, to put it another way, the result of a cast is an rvalue, and C does not have array rvalues. -- In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7163) Domain: chris@mimsy.umd.edu Path: uunet!mimsy!chris