Thanks for the reply and the clarification. I'm not quite sure what to do with that program yu gave me. Should I use it combination with the previous program or as a standalone. I tried it as a...
Type: Posts; User: deadhippo
Thanks for the reply and the clarification. I'm not quite sure what to do with that program yu gave me. Should I use it combination with the previous program or as a standalone. I tried it as a...
Thanks again.
Thanks for the reply. I'm not really sure about the reasoning but I guess I'll try to just accept it as a fact.
Why is EOF defined as -1 in stdio.h though?
Ctrl-C worked for me. Thanks for the...
Thanks for the replies. I am still a little confused though. I thought because EOF is defined in stdio.h as -1, that when I type in -1 the program should end.
Your suggestions work of course and I...
Hi,
I am currently studying K&R and I was looking at the example as follows:
#include <stdio.h>
main ()
{
int c;
c = getchar();