Created
May 27, 2011 20:46
-
-
Save halfdan/996139 to your computer and use it in GitHub Desktop.
Bool in C99
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdbool.h> | |
#include <stdio.h> | |
bool test = false; | |
int main(void) { | |
if(test) { | |
printf("Test is true"); | |
} | |
else { | |
printf("Test is false"); | |
} | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment