2015年8月26日 星期三

[C] define a data type of 1 bit size

In C99 you can write:

#include <stdio.h>
#include <stdbool.h>

int main ()
{
    bool happy = 0;
    printf("%d",happy);
}

Result :
0

Reference:

0 意見:

張貼留言