How do I get the ASCII code of a character using C language
/*
Example: get the ascii code of char in C language
*/
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char const *argv[])
{
int ascii_a = (int) 'a';
printf("%d\n",ascii_a);
return 0;
}