representation of MAC address in C code

前端 未结 1 1301
旧时难觅i
旧时难觅i 2021-01-12 09:05

I often see such representation of MAC address in C code:

struct mac_addr {
   unsigned char bytes[6];
}

Why necessary put an array in a st

相关标签:
1条回答
  • 2021-01-12 09:24

    You can't assign an array in C. But you can assign a struct.

    0 讨论(0)
提交回复
热议问题