Typedef union

C

Charles Arnett

I have delcred a union as
union {TProbe probeArray[4];
char dummy[sizeof(probeArray)];
} PutEE;
TProbe has various elements such as rtp = 100.01
however when I want to access probeArray[0].rtp
it doesn't access.

Should I typedef the union somewhere and how do i do it.
charles arnett
 
D

Default User

Charles said:
I have delcred a union as
union {TProbe probeArray[4];
char dummy[sizeof(probeArray)];
} PutEE;
TProbe has various elements such as rtp = 100.01
however when I want to access probeArray[0].rtp
it doesn't access.

Should I typedef the union somewhere and how do i do it.


Please post a complete, minimal program that demonstrates the problem.
The snippet you show seems to be missing the union object itself, which
is PutEE, but it's difficult to say from an incomplete example.




Brian
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,163
Messages
2,570,897
Members
47,434
Latest member
TobiasLoan

Latest Threads

Top