Created
December 4, 2019 09:05
-
-
Save piyushchauhan2011/a06b0c2de5cd8e8f0e9c039d4d8137d3 to your computer and use it in GitHub Desktop.
C check mark and cross mark terminal unicode characters
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> | |
#include <wchar.h> | |
#include <locale.h> | |
int main() { | |
setlocale(LC_CTYPE, ""); | |
wchar_t checkMark = 0x2713; | |
wchar_t crossMark = 0x2717; | |
wprintf(L"%lc\n", checkMark); | |
wprintf(L"%lc\n", crossMark); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment