简体   繁体   中英

unsigned char[], bits or bytes?

I'm writing some kind of protocol to transmit with the NRF24 module so, the procotol is declared like this:

unsigned char protocol[16];

that protocol have 16bits or 16bytes size?

16 bytes. 1 char is generally 1 byte on most systems.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM