Representation of MAC Address in C Code

I often see this representation of the MAC address in C code:

struct mac_addr { unsigned char bytes[6]; } 

Why is it necessary to put an array in a structure, why not just have an array? What is the use of this?

Thanks.

+7
c embedded network-programming
source share
1 answer

You cannot assign an array to C. But you can assign a structure.

+10
source share

All Articles