Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site watcgl.UUCP Path: utzoo!watmath!watcgl!dmmartindale From: dmmartindale@watcgl.UUCP (Dave Martindale) Newsgroups: net.lang.c Subject: Re: side effects inside sizeof Message-ID: <2556@watcgl.UUCP> Date: Sun, 13-May-84 13:37:27 EDT Article-I.D.: watcgl.2556 Posted: Sun May 13 13:37:27 1984 Date-Received: Mon, 14-May-84 00:21:05 EDT References: <3844@utzoo.UUCP> Organization: U of Waterloo, Ontario Lines: 11 Another interesting one is: #define MSG "this is some string or other" ... l = sizeof(MSG); In the compilers I'm familiar with, the string is dumped out into the data space of the program, even though the compiler does evaluate the size at compile time and the string will never be referenced.