#include <stdio.h> #include <stdlib.h> #include <string.h> int main(int argc, char* argv[]) { char c = '7'; int a = c - '0'; printf("%c\n", c); printf("%d\n", a); return 0; }
Learn hexadecimal, decimal and binary system conversions in under 30 minutes with this course!