Created
August 27, 2014 17:54
-
-
Save bvenners/ba37a0ff963a0d4a0174 to your computer and use it in GitHub Desktop.
Arithmetic conversions in C
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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