Write a program to print the value EOF.
int main(int argc, char *argv)
int running = 1;
printf("Type a letter to see it's value.\nSubmit 'q' to quit.\n");
character = getchar();
if(character != '\n' && character != EOF)
printf("%c = %i\n", character, character);
else if(character == '\n')
printf("[enter] = %i\n", character);
else if(character == EOF)
printf("[EOF] = %i\n", character);
if(character == 'q')
running = 0;
Type a letter to see it's value.
Submit 'q' to quit.
[EOF] = -1
q = 113