int main(int argc, char **argv)
{
int fd, err, len, i, bit;
unsigned char byte;
struct input_id id;
unsigned int evbit[2];
fd = open(argv[1], O_RDWR);
err = ioctl(fd, EVIOCGID, &id);
len = ioctl(fd, EVIOCGBIT(0, sizeof(evbit)), &evbit);
if (len > 0 && len <= sizeof(evbit))
{
for (i = 0; i < len; i++)
{
byte = ((unsigned char *)evbit)[i];
printf("%c ", byte);
}
}
}
请问byte = ((unsigned char *)evbit)[i] 这句的作用是什么?
为什么要用两个括号?
把数组名括起来有何特别意义?