C language get the ASCII code value of a character

‮w‬ww.lautturi.com
C language get the ASCII code value of a character
/*
Example:view ASCII values of characters  in C language
*/

#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <string.h>
#include <stdbool.h>

int main(int argc, char *argv[]) {
    char chr = 'a';

    printf("char: %c.\n", chr);
    printf("ASCII value %d.", chr);
    return 0;
}
Created Time:2017-08-22 14:15:57  Author:lautturi