Article View: comp.std.c
Article #5435Re: Can the address of a variable change during a function?
From: Joe Buck
Date: Mon, 21 Nov 1988 17:24
Date: Mon, 21 Nov 1988 17:24
26 lines
1300 bytes
1300 bytes
In article <8938@smoke.BRL.MIL> gwyn@brl.arpa (Doug Gwyn (VLD/VMB) <gwyn>) writes: >>In this case, the behavior of the program will be *very* >>different than if the variables had been declared with >> auto int i; >> int j; > >No, the "auto" was implicit in the previous example. In fact there >is no real use for an explicit "auto" keyword in C. Well, I have found one use: bringing code up under buggy C compilers. Some earlier versions of the Masscomp C compiler choke and die when handed large programs with lots of "register" variables. I almost always got them to come up by specifying -Dregister=auto Some people attempt -Dregister= in such cases, but this often leads to invalid C. -- - Joe Buck jbuck@epimass.epi.com, or uunet!epimass.epi.com!jbuck, or jbuck%epimass.epi.com@uunet.uu.net for old Arpa sites
Technical Details
Message-ID:
<2668@epimass.EPI.COM>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!husc6!rutgers!apple!epimass!jbuckReferences:
<6472@june.cs.washington.edu> <8938@smoke.BRL.MIL>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!husc6!rutgers!apple!epimass!jbuck From: jbuck@epimass.EPI.COM (Joe Buck) Newsgroups: comp.std.c Subject: Re: Can the address of a variable change during a function? Message-ID: <2668@epimass.EPI.COM> Date: 21 Nov 88 17:24:15 GMT References: <6472@june.cs.washington.edu> <8938@smoke.BRL.MIL> Reply-To: jbuck@epimass.EPI.COM (Joe Buck) Organization: Entropic Processing, Inc., Cupertino, CA Lines: 26