Pointer Stew

Doug Gwyn gwyn at smoke.BRL.MIL
Mon May 8 07:38:19 AEST 1989


In article <387 at spec0.UUCP> blm at spec0.UUCP (Bharat Lal Madhyani) writes:
>char *bad_address = "Testing Initialization";
>char *path[]  = {
>		bad_address,           /* Here is illegal initialization */
>};

Yes, because such initializers have to be known at compiler/link time,
not run time, the initializers must be constant expresions, not
contents of storage locations.



More information about the Comp.lang.c mailing list