a1p3(introprog)

a1p3(introprog) - /* Print both values as integers. */...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
#include <stdio.h> int main(void) { /* Declare and initialize variables. */ int ch='a'; int i=97; ch += 2; i +=2; /* Print both values as characters. */ printf("value of ch: %c; value of i: %c \n",ch,i);
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: /* Print both values as integers. */ printf("value of ch: %i; value of i: %i \n",ch,i); /* Exit program. */ return 0; } /*------------------------------------------------------------*/...
View Full Document

This note was uploaded on 04/08/2008 for the course ECE 1620 taught by Professor Perry during the Spring '08 term at Villanova.

Ask a homework question - tutors are online