> > 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=&ship1; > > (*p).temperature=123; > > 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