Hi there, I've just started to learn c and there's some sections which i have no idea of. I'm hoping some one can help me.
I'm required to write a program which counts the number of characters and lines in the input
and this is what the output should look something like this:
I know that I will need to use getchar() for this but how does it count the characters?
[@localhost ~]$ ./count
Enter...