...
This noncompliant example highlights the result of adding an integer and a long value even though it appears that two integers 1111
are being added.
Code Block | ||||
---|---|---|---|---|
| ||||
printf("Sum is %ld\n", 1111 + 111l); |
...
The compliant solution improvises by using an upper case 'L' instead of lower case 'l' to disambiguate the visual appearance.
Code Block | ||||
---|---|---|---|---|
| ||||
printf("Sum is %ld\n", 1111 + 111L); |
...