/*
 * K&R C Programming language
 * ---------------------------------------------------
 * Excersise 1-6
 *
 * Verify that the expression getchar() != EOF is 0 or 1
 *
 */

#include <stdio.h>

int
main()
{
    /* type Control-D (generates EOF) for test */
    printf("%d\n", getchar() != EOF);
}
