6

私は次の組合を持っています

union data {
     uint64_t val;
     struct{
     ....
     }
};

そして私には機能があります

func(union data mydata[])
{
    printf("%llu",(uint64_t)mydata[0]); // Here is the error
}

このコードをコンパイルすると、次のエラーが発生します

error: aggregate value used where an integer was expected
4

2 に答える 2