-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.

4

1 回答 1

1

好吧,在 C 中,char的大小是1。我想我们不知道它是 1 个八位字节还是更多(或更少)。

所以,

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

不工作?

于 2019-04-02T18:58:31.800 回答