/* * Simple examples of arithmetic operations with chars */ #include int main (void) { char c, d; c = '0'; d = c + 1; putchar(d); putchar('\n'); if (c == 0) { printf("True!\n"); } else { printf("False!\n"); } c = 'a'; d = c + 1; putchar(d); putchar('\n'); d = c + 2; putchar(d); putchar('\n'); d = c + 3; putchar(d); putchar('\n'); return 0; }