Created
October 27, 2018 14:56
-
-
Save steinelu/5157da96efe895f29f0708dffbf05399 to your computer and use it in GitHub Desktop.
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
| #include <stdio.h> | |
| char lower(char c){ | |
| return c | 0b0100000; | |
| } | |
| char upper(char c){ | |
| return c & 0xdf; | |
| } | |
| int main() | |
| { | |
| printf("%c,%c\n",'F', lower('F')); | |
| printf("%c,%c\n",'j', upper('j')); | |
| return 0; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment