Hi,

i want to store a hex values 01 00 A8 E3 56 E1 into a byte array
and send it through socket

can anyone suggest a way to store this

thanks,

The direct equivalent to a byte is unsigned char, so:

unsigned char bytes[6];
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.