Miscellany
public text v1 · immutable#include <stdio.h>
/* count characters in input; 1st version */
main(void)
{
long nc;
nc = 0;
while (getchar() != EOF)
++nc;
printf("%1d\n", nc);
}
#include <stdio.h>
/* count characters in input; 1st version */
main(void)
{
long nc;
nc = 0;
while (getchar() != EOF)
++nc;
printf("%1d\n", nc);
}