共用体在程序编写中可以作为函数的参数传递

在keil5软件中输入如下测试代码编译不会报错(仅测试)

union str{
    int a;
    char b;
};

union str test(union str id)
{
    union str fd;
    return fd;
}

你可能感兴趣的:(共用体在程序编写中可以作为函数的参数传递)