From 0e23acd9f9b6e64d7829ec665ac53322c408d115 Mon Sep 17 00:00:00 2001 From: riyarajput100 <116476552+riyarajput100@users.noreply.github.com> Date: Fri, 28 Oct 2022 16:50:53 +0530 Subject: [PATCH] Create ascllvalue.c ASCII stands for American Standard Code for Information Interchange. It is a character encoding standard for electronic communication. --- ascllvalue.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 ascllvalue.c diff --git a/ascllvalue.c b/ascllvalue.c new file mode 100644 index 0000000..c79e662 --- /dev/null +++ b/ascllvalue.c @@ -0,0 +1,13 @@ +#include +#include +int main() +{ + char ch; + int i; + printf("Enter a Character: "); + scanf("%c", &ch); + i = ch; + printf("\nASCII Value of %c = %d", ch, i); + getch(); + return 0; +}