na przykład: #include <stdio.h>
main()
{
long nc;
nc = 0;
while (getchar() != EOF)
++nc;
printf("%ld\n", nc);
}
Nie bardzo rozumiem. putchar() wyprowadziłby tę postać,
Czytam K & R Język programowania C i stały się zdezorientowane na putchar i getchar. Zrobiłem program, w którym wpisujesz 10 znaków i program wypisuje je na ekranie. #include <stdio.h>
int main()
{