469,609 Members | 1,687 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,609 developers. It's quick & easy.

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>
Jun 27 '08 #1
0 1647

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

12 posts views Thread by Chris Readle | last post: by
16 posts views Thread by Josh Zenker | last post: by
2 posts views Thread by arnuld | last post: by
4 posts views Thread by arnuld | last post: by
16 posts views Thread by arnuld | last post: by
19 posts views Thread by arnuld | last post: by
5 posts views Thread by arnuld | last post: by
16 posts views Thread by arnuld | last post: by
88 posts views Thread by santosh | last post: by
reply views Thread by devrayhaan | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.