![]() |
unnamed members of a structure - Printable Version +- MISRA Discussion Forums (https://forum.misra.org.uk) +-- Forum: MISRA C (https://forum.misra.org.uk/forumdisplay.php?fid=4) +--- Forum: MISRA-C: 2004 rules (https://forum.misra.org.uk/forumdisplay.php?fid=17) +---- Forum: 6.18 Structures and Unions (https://forum.misra.org.uk/forumdisplay.php?fid=48) +---- Thread: unnamed members of a structure (/showthread.php?tid=317) |
unnamed members of a structure - rahul_mishra - 13-10-2006 Please let me know \"How do we access an unnamed member of a structure\"? Its quite natural to use bitfields as unnamed members of a structure especially for padding. But, how do we access those unnamed members. Do we have to increment the pointer to access it? if yes, please illustrate it with an example. - misra-c - 21-11-2006 MISRA-C Steering Team - 7th November 2006 Do NOT access the unnamed members of a structure. If you want to access such a member, give it a name. Any other mechanism is not allowed |