I am having following union
union data {
uint64_t val;
struct{
....
}
};
and I have a function
func(union data mydata[])
{
printf("%llu",(uint64_t)mydata[0]); // Here is the error
}
When i compile this code it is giving following error
error: aggregate value used where an integer was expected