Created
May 19, 2020 19:42
-
-
Save gjyoung1974/fd9a9c3ef5eae1359cb5434f0c719be5 to your computer and use it in GitHub Desktop.
hello world prints emojis
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
/* | |
============================================================================ | |
Name : hello_world.c | |
Author : Gordon Young | |
Version : | |
Copyright : Your copyright notice | |
Description : Hello World in C, Ansi-style | |
============================================================================ | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> | |
int main(void) { | |
char* bee = "\U0001F41D"; | |
const char martini[5] = {0xF0, 0x9F, 0x8D, 0xB8, '\0'}; | |
char* aubergine = "\U0001F346"; | |
puts("!!!Hello World!!!"); /* prints !!!Hello World!!! */ | |
puts(bee); | |
puts(martini); | |
puts(aubergine); | |
return EXIT_SUCCESS; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment