任何人都可以解释这段代码会做什么?

Raj*_*esh 2 c

有谁能告诉我这个C语句的含义是什么?

 static uint8_t chess_storage(DM%2) host_response[14] ;
Run Code Online (Sandbox Code Playgroud)

unw*_*ind 7

它不是有效的C,你不能%在那个位置.而且你也不能chess_storage(DM%2)在那里拥有整个东西,除非(可能)它是一个可以做你能做的事情的宏.

这个:

static uint8_t host_response[14];
Run Code Online (Sandbox Code Playgroud)

将声明host_response为14个8位无符号整数(又称"字节")的数组.

如果我们添加这个:

#define chess_storage(size)
#define DM 1
Run Code Online (Sandbox Code Playgroud)

然后代码变得至少有效,代替我们chess_storage用参数调用宏,1%2预处理器能够计算.由于宏是空的,整个术语将消失,留下上面的数组声明.

可能还有其他更"艺术"的宏.