sizeof operator shows wrong size of struct in c

前端 未结 0 1679
我寻月下人不归
我寻月下人不归 2021-02-02 05:21

Having this simple code:

#include 

typedef struct
{
    int a;
    char c;
} foo;

void func(void *arg)
{
    printf("sizeof arg: %ld\\n"         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题