cvs.gedasymbols.org/archives/browse.cgi | search |
Date: | Tue, 28 Apr 1998 13:44:39 +0300 (IDT) |
From: | Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> |
To: | "John M. Aldrich" <fighteer AT cs DOT com> |
cc: | djgpp AT delorie DOT com |
Subject: | Re: Proper use of the & operator |
In-Reply-To: | <35452038.421C@cs.com> |
Message-ID: | <Pine.SUN.3.91.980428134420.27094J-100000@is> |
MIME-Version: | 1.0 |
On Mon, 27 Apr 1998, John M. Aldrich wrote: > > memset(&strbuf, 0, 13); > > Many compilers seem to have no problem with that construct; taking the > address of an array label has the same semantic meaning as using the > array label itself. However, the type of the pointer is open to > question. AFAIK, &array is perfectly legal in ANSI C, and yields a pointer to the array, so it is the same as &array[0].
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |