EmbLogic's Blog

resizing structures as per the number of total bytes declared

To resize the structure as per the number of total bytes declared in structure we use the #pragma directive.
The #pragma pack directive modifies the current alignment rule for members of structures following the directive.
syntax: ex–>#pragma pack(1)

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>