Get the App
SLTechnology News&Howtos  ›  Development  › 

How to get the number of bytes occupied by field in a structure by C language

Shulou Source: shulou.com Published: 2022-06-01 04:21:18 09月22日 Update

This article mainly shows you "C language how to get the number of bytes occupied by field in a structure". The content is simple and clear. I hope it can help you solve your doubts. Let me lead you to study and learn this article "C language how to get the number of bytes occupied by field in a structure".

Get the number of bytes occupied by field in a structure

# define FSIZE (type, field)\ (sizeof (type*) 0)-> field)) these are all the contents of the article "how C language gets the number of bytes occupied by field in a structure". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Tags: Byte structure language content article learning help easy to understand more organization knowledge editing industry information information channel channel research Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB Microsoft Redmi vpn Apple