Skip to content

Instantly share code, notes, and snippets.

@chilyashev
Created August 23, 2013 14:39
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 chilyashev/6320056 to your computer and use it in GitHub Desktop.
Save chilyashev/6320056 to your computer and use it in GitHub Desktop.
define X in such way that (X+1 == X) is true :-)
#include <stdio.h>
#include <float.h>
#define X FLT_MAX
int main(){
if(X+1 == X){
printf("Yup.");
}else{
printf("Nope.");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment