Char tab on 3 octets

69 Views Asked by At

I would like to know how to define a char array, in C, of three elements a,b,c, where a is located on one first octet, b in one second and c in one third.

1

There are 1 best solutions below

4
On BEST ANSWER

Well, In C, the size of char it's 1. I think we can't know if it's 1 octet or more (or less).

So,

char tab[3] = {'a','b','c'};

doesn't work ?