C
c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include <stdio.h>
#include <stdlib.h>
int main(void) {
//system("clear"); Add if you download and compile on your machine.
puts("\nThe decimal binary and 'printable' charater set for unsigned integer (char)\nwithout the extended ASCII map.\n");
puts("Decimal\tBinary\t\tCharater");
puts("-------\t------\t\t--------");
for(int i = 0; i <= 255; i++) {
unsigned char temp = i;
char bin[8] = {0};
for(int x = 7; x >= 0; x--) {
if(temp & 1) {
bin[x] = '1';
} else {
bin[x] = '0';
}
temp = temp >> 1;
}
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run