Dubbio su C18 Microchip

Jan 11, 2010 2 Replies

Salve a tutti, utilizzando il convertitore A/D a 10 bit del PIC18F252 (opportunamente configurato, ecc..), perchè questa istuzione mi ritorna un valore errato? Flow è ovviamente una variabile unsigned int.



Flow = ADRESL+ADRESH


"Fabio Riscica" ha scritto nel messaggio:

Hai perfettamente ragione, in ANSI C la priorità dell'operatore + è superiore a quella dell'operatore

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required