compact structures.

Store some variables with customized numbers of bits.

operator :

See version :

Pas de dépendances

Download :

#include <stdio.h>

struct test
{
    int a:3;
    int b:5;
    int c:1;
    int d:7;
    int v:15;
};

int main()
{
    struct test S;
    printf("Taille memoire de test : %d\n",sizeof(struct test));
    S.c=1;
    S.a=2;
    printf("c=%d ; a=%d\n",S.c,S.a);
    return 0;
}



Explanations

	No explanations yet.