www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/11/29/23:15:47

From: cgf AT bbc DOT com (Chris Faylor)
Subject: Re: pointers &arrays[]
29 Nov 1997 23:15:47 -0800 :
Message-ID: <EKG159.83K.cygnus.gnu-win32@bbc.com>
References: <199711291235 DOT HAA28300 AT p2 DOT acadia DOT net>
Reply-To: cgf AT bbc DOT com
To: gnu-win32 AT cygnus DOT com

Can I suggest that you let this thread die or move it to a more
appropriate forum (comp.lang.c springs to mind)?  This has nothing to do
with the purpose of this mailing list.

Thanks.

In article <199711291235 DOT HAA28300 AT p2 DOT acadia DOT net>,
Scott Warner <swarnerx3 AT acadia DOT net> wrote:
>Thank you for this distinction.  It's an excellent point to remember.
>
>----------
>> From: Jean-Philippe Chancelier
><Jean-Philippe DOT Chancelier AT cergrene DOT enpc DOT fr>
>> To: swarnerx3 AT acadia DOT net
>> Subject: Re: pointers &arrays[]
>> Date: Friday, November 28, 1997 5:07 AM
>> 
>> >>>>> "Scott" == Scott Warner <swarnerx3 AT acadia DOT net> writes:
>> 
>> Hello,
>> My little contribution to array-pointers 
>> 
>>     Scott> 1.  Array names are equivelant to pointers in most cases 
>> 
>>     Yes as long as you do not try to change the adress they point to.
>> 
>> 	   int *x ,y[10],j=20,z[10];
>> 	   f(x) or f(y) 
>> 	   x[0] =10 ; 
>> 	   y[0] = 20 ;
>> 	   .... 	   
>>     But 
>> 	   y= malloc(...);  not valid 
>> 	   y= x ; not valid 
>> 	   y= &j ; not valid 
>> 	   y=z ;   not valid too 
>> 	   so y acts like a pointer since it points somewhere 
>> 	   but you can't change the adress where it points 
>> 	   It's like a const pointer 	   
>> 
>> Jean-Philippe 
>> 
>-
>For help on using this list (especially unsubscribing), send a message to
>"gnu-win32-request AT cygnus DOT com" with one line of text: "help".


-- 
http://www.bbc.com/	cgf AT bbc DOT com			"Strange how unreal
VMS=>UNIX Solutions	Boston Business Computing	 the real can be."
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019