EmbeddedRelated.com
Forums

Pic very basic C18 question

Started by Royston Vasey March 15, 2010
On Mar 15, 9:51=A0pm, linnix <m...@linnix.info-for.us> wrote:
> On Mar 14, 10:01=A0pm, D Yuniskis <not.going.to...@seen.com> wrote: > > > Royston Vasey wrote: > > > I'm pushing along trying to learn some C using MCC18. Can someone ple=
ase
> > > tell me what the "&" before the variable "variable" does or means in =
the
> > > code below? I'm finding it hard to find basic info like this in the > > > documentation I've found. > > > > Is it AND? AND with what? > > > > =A0 =A0 ee_read_byte(0x00, &cal_var); //initialise calibration variab=
le from
> > > eeprom > > > > why the "&" -----------^ > > > read as: "address of" ... > > I always wonder why they did not use @. =A0It would have been much > clearer. =A0After all, it was designed by a committee of two only.
May be thats why "committee of two" have also provided macros. If you wanted to use @ for &, what do you want to use for @ ?