> > > > > p=&ship1; > > > > > (*p).temperature=123; > > > > > the error message is same. > > > > The p pointer is const, but the &ship1 expression is the address of the > > ship1 variable. (*p).temperature=123; is point to the ship1.temperature > > varible. So the ship1.temperature=123; and (*p).temperature=123; is must > > be equal. When i read from work, when write not, this looks like a bug. > > no the pointer is not const, it is a pointer to a const. No, the p pointer is pointer to _variable_. But placed in the rom, so this realy constant :). udv Csaba -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads