Re: beginner c questions
- From: "Mike Wahler" <mkwahler@xxxxxxxxxxxx>
- Date: Thu, 03 Nov 2005 02:47:13 GMT
"matt" <mweppler@xxxxxxxxx> wrote in message
news:1130985194.199825.23570@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
>> You should read the reviews at www.accu.org for which I gave
>> the link in another message in this thread. Surprisingly to
>> me, the book I'd recommend isn't listed there: Kernighan
>> and Ritchie, "The C Programming Language" Second Edition.
>> It's the one I learned with, oh so many eons ago. :-)
>> Also don't feel you should restrict yourself to a single
>> book. Often seeing the perspectives of different authors
>> about the same subject can help greatly.
>>
>>
>> -Mike
>
> I actually have Kernighan and Ritchie, "The C Programming Language"
> Second Edition.
Good. Keep it.
> I started with it but I felt it was asking me to write
> c without teaching it first.
It 'teaches as it goes'. But I must admit it is
quite concise. But all the info is there.
> As an example in the first chapter it asks
> you to print EOF, it doesnt even explain how anywhere
You need to 'put the pieces together'. EOF is explained on
page 16.
How to print an integer is explained on page 11 (also see
page 13).
(page numbers might not be exact if your book doesn't have
same printing date as mine, but should be close).
Were you successful with the "Hello world" program?
> so how can I move
> forward.
Go slowly. Read and reread, carefully. Experiment.
Anyway, here's how to print the value of EOF:
#include <stdio.h>
int main()
{
printf("%d\n", EOF);
return 0;
}
> I purchased the book I have now from me girlfriends college
> figuring since they sell it in the school it would be helpful.
You should probably hang on to it. It could be useful later.
>I really
> dont know where to go next, I do have php programming experence but am
> not finding it helpful with these questions at all.
Forget about PHP when learning C. It's enough different from C that it will
probably only cause confusion.
-Mike
.
- References:
- beginner c questions
- From: matt
- Re: beginner c questions
- From: Keith Thompson
- Re: beginner c questions
- From: matt
- Re: beginner c questions
- From: Mike Wahler
- Re: beginner c questions
- From: matt
- Re: beginner c questions
- From: Mike Wahler
- Re: beginner c questions
- From: matt
- Re: beginner c questions
- From: Mike Wahler
- Re: beginner c questions
- From: matt
- beginner c questions
- Prev by Date: Re: variable sized unions
- Next by Date: Re: scanf to handle double
- Previous by thread: Re: beginner c questions
- Next by thread: Re: beginner c questions
- Index(es):
Relevant Pages
|