关于offsetof应用报错
#include <stdio.h>#include <stddef.h>
#include <stdint.h>
typedef struct
{
int a;
unsigned char b;
char c;
}Mystruct;
int main(int argc, char *argv[])
{
unsigned int Address;
Address = offsetof(Mystruct, b);
}
为什么会报 error: syntax error before ')' token 这个错误,一直都没有找到原因......