Hi all
I have a structure
If I want to fill all those bit fieds (version, Ack_Req, etc), should I use "var" for filling those bit fileds [test22.test11.var = <some value>]Code:struct test { union test1{ short int Version:4, Ack_Req:1, Ack_Rsp:1, Reserved:10; short int var; }test11; }test22;
But even if I want to access them(bit fileds) individually
[test22.test11.Version=<some value>], I can access, compiler does not give any warning...I'm not sure whether this is the right technique to access those bit fields... because they all are a single member element.
Please comment....
thanks & regards
onebrother