Search This Blog


Monday, 15 April 2019

Program to Print ASCII VALUE Language C

Welcome Back To Code Junction,Happy to see you Guys again.
Don't Forget to Visit our other blogs on C programming and Data Structure in C.

So in this Tutorial we are discussing about the The Fact that every Character 
Has  a ASCII Value, But We Can't Remember All the Values so to overcome that 
Problem we have this small piece of Code.

 

CODE
#include<stdio.h>

int main()

{

char ch;

printf("ENTER ANY CHARACTER");

scanf("%c",&ch);

printf("ASCII value of character %c is %d",ch,ch);

return 0;
 

}

Output

 

 

 

No comments:

Post a Comment