#include <limits.h>
#include <stdio.h>
struct OneBit {
unsigned int value:1;
};
typedef struct OneBit onebit;
int main(void) {
onebit x;
x.value = 1;
x.value++;
printf("1 incremented is %d\n", x.
value); printf("each object of type 'onebit' needs %d bytes (%d bits)\n", (int)sizeof x, CHAR_BIT * (int)sizeof x);
return 0;
}
I2luY2x1ZGUgPGxpbWl0cy5oPgojaW5jbHVkZSA8c3RkaW8uaD4KCnN0cnVjdCBPbmVCaXQgewogICAgdW5zaWduZWQgaW50IHZhbHVlOjE7Cn07CnR5cGVkZWYgc3RydWN0IE9uZUJpdCBvbmViaXQ7CgppbnQgbWFpbih2b2lkKSB7CiAgICBvbmViaXQgeDsKICAgIHgudmFsdWUgPSAxOwogICAgeC52YWx1ZSsrOwogICAgcHJpbnRmKCIxIGluY3JlbWVudGVkIGlzICVkXG4iLCB4LnZhbHVlKTsKICAgIHByaW50ZigiZWFjaCBvYmplY3Qgb2YgdHlwZSAnb25lYml0JyBuZWVkcyAlZCBieXRlcyAoJWQgYml0cylcbiIsCiAgICAgICAgICAoaW50KXNpemVvZiB4LCBDSEFSX0JJVCAqIChpbnQpc2l6ZW9mIHgpOwogICAgcmV0dXJuIDA7Cn0=