[an error occurred while processing this directive]
[an error occurred while processing this directive]
|
tiny union {
unsigned w;
char b[2];
} adcres;
Далее к объекту можно обращаться хоть по-байтно: adcres.b[0] и т.д, хоть по-словно adcres.w; Кстати, в 16-разрядниках это тоже удобно :)
(tiny и unsigned - понятно, специфика, можете unsigned на int заменить.)
E-mail: info@telesys.ru