Article View: comp.os.ms-windows.programmer.tools.mfc
Article #12Re: Newbie pointer question
From: Bernard S. Greenberg
Date: Sun, 10 Sep 1995 21:15
Date: Sun, 10 Sep 1995 21:15
24 lines
1543 bytes
1543 bytes
Vashist Worah (vashist@tcsmgmt.com) wrote: : This may seem trivial to veterans here, but I am trying to figure out : what in the world is the difference in declaring pointers in the two : different manners illustrated below (VC++ 2.2): : 1) double* x : 2) double *x : Of course, referencing pointers in the manner : *x : yields the value of the variable whose address is stored in the pointer : x. : Thanks! No difference in meaning. The compiler ignores whitespace around known operators. The stylistic difference in meaning would probably be whether the author thinks that "double *" being a type (pointer to a double) is more significant than "*x" being a prototype reference to the object. Again, there is no difference. Such questions should be directed to the C language group. Bernard S. Greenberg bsg@basistech.com
Technical Details
Message-ID:
<42vkh3$kmj@narita.basistech.com>Path:
arc1-ca.pugleaf.net!basistech.com!bsgReferences:
<9a7cb$d1625.8d@news.tcsmgmt.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!basistech.com!bsg From: bsg@basistech.com (Bernard S. Greenberg) Newsgroups: comp.os.ms-windows.programmer.tools.mfc,comp.os.ms-windows.programmer.win32,comp.lang.c,comp.lang.c++ Subject: Re: Newbie pointer question Followup-To: comp.os.ms-windows.programmer.tools.mfc,comp.os.ms-windows.programmer.win32,comp.lang.c,comp.lang.c++ Date: 10 Sep 1995 21:15:15 GMT Organization: Basis Technology, Inc. Message-ID: <42vkh3$kmj@narita.basistech.com> References: <9a7cb$d1625.8d@news.tcsmgmt.com> NNTP-Posting-Host: narita.basistech.com Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Newsreader: TIN [version 1.2 PL2]