Write a program to find ASCII Value of a Character in C Language - Program to find ASCII Value of a Character in C - Program to find ASCII Value

Program to find ASCII Value of a Character in C

ASCII Value क्या है
ASCII Value किसी भी Character की Numerical Value को दिखाता है |
जैसे A की ASCII Value है 65
और a की ASCII Value है 97
यह 0 से 127 नंबर के बीच होती है | कुछ अतिरिक्त ASCII Value भी होती है जो ओर 128 नंबर को जोड़ कर 255 हो जाती है |


ASCII Code का C Program कुछ इस प्रकार है


#include <stdio.h>

int main()

{

char ch;

printf("Enter character : ");

scanf("%c", &ch);

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

return 0;

}

इस कोड को हमने CODEBLOCK पर बना कर run किया है


ASCII Value of Capital A is

ASCII Value of Small a is

Comments