Skip to content

Instantly share code, notes, and snippets.

@bvenners
Created August 27, 2014 17:54
Show Gist options
  • Select an option

  • Save bvenners/ba37a0ff963a0d4a0174 to your computer and use it in GitHub Desktop.

Select an option

Save bvenners/ba37a0ff963a0d4a0174 to your computer and use it in GitHub Desktop.
Arithmetic conversions in C
main()
{
if (1 == 1L)
printf("In C, 1 == 1L\n");
else
printf("In C, 1 != 1L\n");
if (1L == 1)
printf("In C, 1L == 1\n");
else
printf("In C, 1L != 1\n");
}
// Prints:
//
// In C, 1 == 1L
// In C, 1L == 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment