Glynn Clements wrote:
>
> Nassar Carnegie wrote:
>
> > 5. You need to get a book on C...
> > Kinda harsh reply dont you think?
>
> Maybe, but I do think that if you want to learn C, you *need* to study
> the foundations thoroughly. C isn't a simple language to use. It was
> intended to be efficient and flexible in the hands of experienced
> programmers. Ease of learning wasn't really a consideration.
This is all true. But it ignores the fact that original poster clearly
WAS TRYING to learn C. Did you notice the comment at the top about how
it was an exercise from page 112 in a textbook?
That's why I gave him a hint on his problem but didn't correct the other
flaws. We can't be doing people's homework for them.