/*------------------------------------------------------------*/ /* Program chapter2_1 */ /* */ /* This program prints two values */ /* as characters and integers. */ #include int main(void) { /* Declare and initialize variables. */ char ch='a'; int i=97; /* Print both values as characters. */ printf("value of ch: %c; value of i: %c \n",ch,i); /* Print both values as integers. */ printf("value of ch: %i; value of i: %i \n",ch,i); /* Exit program. */ return 0; } /*------------------------------------------------------------*/