Created
December 8, 2015 15:13
-
-
Save KristianLyng/aa671751f08b7ea2ff59 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
| kly@leia:~$ cat foo.c | |
| #include <stdio.h> | |
| int main(char *b, char **a) | |
| { | |
| b = (int) b > 1 ? a[1] : "meh"; | |
| do { | |
| putchar(*b - 32); | |
| } while (*++b || !putchar('\n')); | |
| } | |
| kly@leia:~$ ./a.out | |
| MEH | |
| kly@leia:~$ ./a.out foobar | |
| FOOBAR | |
| kly@leia:~$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment