Skip to content

Instantly share code, notes, and snippets.

@syncsynchalt
Created July 30, 2014 20:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save syncsynchalt/2b927a149a42e4ef1f71 to your computer and use it in GitHub Desktop.
Save syncsynchalt/2b927a149a42e4ef1f71 to your computer and use it in GitHub Desktop.
#include <stdio.h>
#include <stdbool.h>
int main(void) {
int a = 2;
if (a) {
printf("a is true\n");
}
if (!a == false) {
printf("!a is false\n");
}
if (!!a != a) {
printf("!!a is not a\n");
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment