Skip to content

Instantly share code, notes, and snippets.

@allomov
Created February 20, 2014 14:34
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 allomov/9114995 to your computer and use it in GitHub Desktop.
Save allomov/9114995 to your computer and use it in GitHub Desktop.
int i = 1; // integer type
double d = 2.0; // floating point type
if (d > i) d = i; // comparing and assignment causes implicit type converstion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment