int c, tot=0; for(c=0;c<127;c++) if (isprint(c)) tot++; printf("There are %d printable characters!\n", tot);