is that true!? doesn't it point constantly at something that itself doesn't have to be constant? /niklas -----Ursprungligt meddelande----- Fr=E5n: Sergio Masci [mailto:smpl@NTLWORLD.COM] Skickat: den 26 februari 2002 14:59 Till: PICLIST@MITVMA.MIT.EDU =C4mne: Re: [pic]:struct+pointer > > cost ship * p; is this cost actually const? You can read from but not write to a const location. const meens constant, unchanging. Declaring a const pointer meens that it points to something which must not be changed. > > p=3D&ship1; > > (*p).temperature=3D123; > > the error message is same. > > p->temperature > > > > > Why??? Regards Sergio -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads