Didn't my original post suggest this, as I said I put the additional int main() and return 0 myself before compiling, but posted the exact code snippet here; I put the return stuff in after...
Type: Posts; User: TimHarrington
Didn't my original post suggest this, as I said I put the additional int main() and return 0 myself before compiling, but posted the exact code snippet here; I put the return stuff in after...
And that's why I have K&R :)
Thanks for the post Elysia, is there a particular book you would suggest instead?
I figure I should give K&R a go anyway, having spent the best part of £20 purchasing it, perhaps I will learn more...
Thanks :)
That is what I thought looking through the book, a bit confusing without getting involved with C first. Not only that, but from what I read it seems C is great to learn, so I will...
A-ha!
It works - excellent, thanks for that!
Your replies bring me onto another quesiton though - should I be learning from K&R? Is this somewhat the 'long way round' to learning C? Ultimately...
Hello there,
The following code appears in K&R (p.18) second edition;
main()
{
long nc;