1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
/* vim: set tabstop=4 shiftwidth=4 fileencoding=utf-8 noexpandtab: */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <inttypes.h>

int main(int argc, char *argv[]) {

    printf("A\n");
    printf("%c\n", 'A');
    printf("%c\n", 65);
    printf("%c\n", 0x41);

    // As an INTEGER
    printf("%d\n", 'A');  // %d is for decimal
    printf("%x\n", 'A');  // %x is for decimal

    return 0;
}

This content is protected and may not be shared, uploaded, or distributed.    © 2019 Alexander J. Quinn.