[C] define a data type of 1 bit size Posted by Keep Growing on 凌晨2:02 in C, Linux Coding / No comments In C99 you can write: #include <stdio.h> #include <stdbool.h> int main () { bool happy = 0; printf("%d",happy); } Result : 0 Reference: define a data type of 1 bit size Share This: Facebook Twitter Google+ Stumble Digg 以電子郵件傳送這篇文章BlogThis!分享至 X分享至 Facebook
0 意見:
張貼留言