Skip to content

Instantly share code, notes, and snippets.

@Ryan-Amaral
Last active September 10, 2019 21:19
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 Ryan-Amaral/2578df3fc727c38b10843e1d51f3a688 to your computer and use it in GitHub Desktop.
Save Ryan-Amaral/2578df3fc727c38b10843e1d51f3a688 to your computer and use it in GitHub Desktop.
A simple demo for capturing and displaying a character in c.
#include <stdio.h>
int main(){
char ch;
printf("Enter a character: ");
ch = getchar();
printf("Pointless line here, delete it! (dd)");
printf("Your character is: ");
putchar(ch);
//printf("\n");
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment