Skip to content

Instantly share code, notes, and snippets.

@echo-akash
Created June 30, 2017 15:23
Show Gist options
  • Save echo-akash/b3481b865170d54d6f0a13ec5607131a to your computer and use it in GitHub Desktop.
Save echo-akash/b3481b865170d54d6f0a13ec5607131a to your computer and use it in GitHub Desktop.
Take a character input and print its corresponding ASCII value in C Programming Language
#include<stdio.h>
int main()
{
char ch;
printf("enter any character\n");
scanf("%c",&ch);
printf("\nASCII value of entered character is:%d",ch);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment