Skip to content

Instantly share code, notes, and snippets.

@caigen
Created November 26, 2013 09:10
Show Gist options
  • Select an option

  • Save caigen/7655470 to your computer and use it in GitHub Desktop.

Select an option

Save caigen/7655470 to your computer and use it in GitHub Desktop.
x < 0 && -x < 0
#include <stdio.h>
int main(int argc, char* argv[]) {
int x = 0;
while (1) {
x++;
if (x < 0 && -x < 0) {
printf("%d %x\n", x, x);
printf("%d\n",-x + x);
break;
}
}
getchar();
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment