-2

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.

Julien
  • 91
  • 8

1 Answers1

1

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 ?