Skip to content

Instantly share code, notes, and snippets.

@gjyoung1974
Created May 19, 2020 19:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gjyoung1974/fd9a9c3ef5eae1359cb5434f0c719be5 to your computer and use it in GitHub Desktop.
Save gjyoung1974/fd9a9c3ef5eae1359cb5434f0c719be5 to your computer and use it in GitHub Desktop.
hello world prints emojis
/*
============================================================================
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