As you have posted the query in the introduce yourself forum no one can even make a guess which programming language you are looking help in. Help us to help you.
hi, thanks for your attention, C++ is the language which I forget to mention, can I store the structure (<1 byte) without using type casting. ................hoping your replay
You can't have a struct containing less than 1 byte in C or C++. I'm guessing you declared a bit-field Code: struct foo { unsigned int bits : 4; }; This will ALWAYS be padded to some multiple of the size of a char. Show us some more of what it is you're trying to do.