Search:

Type: Posts; User: deadhippo

Search: Search took 0.01 seconds.

  1. Replies
    12
    Views
    3,684

    Thanks for the reply and the clarification. I'm...

    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...
  2. Replies
    12
    Views
    3,684

    Thanks again.

    Thanks again.
  3. Replies
    12
    Views
    3,684

    Thanks for the reply. I'm not really sure about...

    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...
  4. Replies
    12
    Views
    3,684

    Thanks for the replies. I am still a little...

    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...
  5. Replies
    12
    Views
    3,684

    Simple EOF question

    Hi,
    I am currently studying K&R and I was looking at the example as follows:

    #include <stdio.h>

    main ()
    {
    int c;

    c = getchar();
Results 1 to 5 of 5