------------------------------------------- $ pico count1.c #include /* count1.c - count characters in input, version 1 */ main() { long nc; nc = 0; while (getchar() != EOF) ++nc; printf("%ld\n", nc); } $ gcc count1.c $ ./a.out < count1.c 177 $ ----------------------------------------- 1. int might be 16 bits (32,767 max) or 32 bits. 2. long integers at least 32 bits. 3. "%ld" specifies nc as long integer (decimal). 4. prefix increment operator, ++nc, adds 1 to nc (nc = nc + 1). --------------------------------------------------