Article View: comp.os.ms-windows.programmer.tools.mfc
Article #14Re: Newbie pointer question
From: LeRoy Baxter
Date: Wed, 13 Sep 1995 03:49
Date: Wed, 13 Sep 1995 03:49
24 lines
1306 bytes
1306 bytes
vashist@tcsmgmt.com (Vashist Worah) 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! >---------------------------------------------------------- >Vashist Worah Simply convention. style 2 is C convention style 1 is C++ convention. I believe the thought is that "double*" more acurately describes the type (pointer) of "x" (the variables' name)
Technical Details
Message-ID:
<435kco$7ge@ns.transport.com>Path:
arc1-ca.pugleaf.net!news.transport.com!usenetReferences:
<9a7cb$d1625.8d@news.tcsmgmt.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!news.transport.com!usenet From: LeRoy Baxter <lbaxter@cinfo.com> 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 Date: 13 Sep 1995 03:49:44 GMT Organization: Columbia Information Systems Message-ID: <435kco$7ge@ns.transport.com> References: <9a7cb$d1625.8d@news.tcsmgmt.com> NNTP-Posting-Host: 204.245.225.182 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 1.2b5 (Windows; I; 32bit) To: vashist@tcsmgmt.com