0

I am working on a project where conserving space is a consideration. I want to create an array of two-byte integers. What is the best way to implement this type? Right now I am considering using a struct and letting functions do the conversions when I need to read or manipulate the value:

typedef struct {
    char a;
    char b;
} int_16;

... but I wonder if there is a more efficient or standard way to approach a problem like this.

sddaa
  • 31
  • 1

0 Answers0