Get the ASCII value of the characters in C
Hey guys once again welcome to the Decoders blog, I hope you all are doing well and today I'm present with another logic but this time with something different it is a C logic which will help us to get the ASCII value of the characters using C beginner level
First of all what is this ASCII value it stands for American standard code that is it assigns all the characters value with some integer value which will be printed when we use the %d symbol to get the desired output
Here the code which will do the same for you ......
#include<stdio.h>
int main()
{
char c;
printf("Enter the character whose ASCii value you want to get:");
scanf("%c",&c);
printf("The ASCII value is %d",c);
return(0);
}
Comments
Post a Comment