Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Ian Collins Newsgroups: comp.lang.c++ Subject: Re: Problem with array objects Date: Sun, 29 May 2011 10:06:24 +1200 Lines: 33 Message-ID: <94d9v1Fr2iU3@mid.individual.net> References: <7EWDp.21826$m_1.16265@newsfe22.ams2> <8YadndAUkrEr233QnZ2dnUVZ8uKdnZ2d@giganews.com> <94b0pmFr1qU1@mid.individual.net> <36ZDp.7023$Tw4.2271@newsfe26.ams2> <94b8rkFr1qU2@mid.individual.net> <94d3qqFr1qU5@mid.individual.net> <94d804Fr2iU2@mid.individual.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net Ug0ty7LxYLBCoIkWkfutZAgKf/Jr9X0T3g/TgNbeaNpO/10wA7 Cancel-Lock: sha1:RAWKgNK1gn4CTcQYX1EUqv1nvT0= User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:1.9.2.9) Gecko/20101021 Lightning/1.0b2 Thunderbird/3.1.4 In-Reply-To: Xref: x330-a1.tempe.blueboxinc.net comp.lang.c++:5785 On 05/29/11 09:58 AM, Paul wrote: > > "Ian Collins" wrote in message > news:94d804Fr2iU2@mid.individual.net... >> On 05/29/11 09:04 AM, Paul wrote: >>> "Ian Collins" wrote: >>>> On 05/28/11 11:24 PM, Paul wrote: >>>>> >>>>> This confirms that _arr$ is an offset, which is used to create a memory >>>>> address. Therefore it's a pointer. >>>> >>>> No it isn't. It's no more a pointer than the 1 in *(p+1) = 0; >>> >>> No its more like: >>> const int offset_to_array = 1; >>> (p+offset_to_array) >> >> So offset_to_array is a pointer and 1 isn't? Interesting. >> > offset_to_array is a pointer yes. because its value represents another > memory location. It points to that location, albeit an offset to the > location , it still points there. > > 1 is a number, more specifically its an integer. Well well. I think we'll leave it there before this degenerates further into farce. So tell me, how many software projects have you worked on? It's clear youve never done any assembly programming, how about C++? -- Ian Collins