How do I get the ASCII code of a character using C language

h‮w//:sptt‬ww.lautturi.com
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;
}
Created Time:2017-08-28 21:22:33  Author:lautturi