Re: K&R2, exercise 6.4

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Martin Ambuhl

    Re: K&R2, exercise 6.4

    arnuld wrote:
    I get a compile time error. I know this has something to do with arrays
    and pointers but I can't figure out what is wrong with line 56:
    LINE 56: psnode++ = &root_node;
    psnode++ yields a value, and does not represent an object.

    I will not try to guess what you meant to say, but note that
    *(psnode++) = root_node;
    is legal and might be related to your intent.

    Note that you also omitted
    #include <ctype.h>
Working...