4

Although I think that I've got that now (the light bulb is pretty bright now but still flickering a little bit), I'd like to read more stuff about pointers, variables, references, memory addresses, etc. Just the whole thing, i.e. what I have to understand when hearing thre term "reference" (think it's just a pointer, not sure).

So let us know your sources! Great articles, books, PDF's, videos, whatever. Anything is appreciated.

Thanks!

Thanks
  • 40,109
  • 71
  • 208
  • 322

7 Answers7

5

Pointers, References, and Arrays in C++ has a wonderful explanation of the basics.

Evan Teran
  • 87,561
  • 32
  • 179
  • 238
2

Help yourself with a book. A good one is "The Objective-C Programming Language" from Apple. It is well written and free:

Also, see:

  • "Programming in Objective-C" by Stephen Kochan
  • "Learning Cocoa with Objective-C" by James Duncan

As for C and C++ resources: these have been discussed before on SO -- try searching the site.

Community
  • 1
  • 1
dirkgently
  • 108,024
  • 16
  • 131
  • 187
2

What I found the most confusing is the difference between an array and a pointer in C. Here's the C FAQ which finally explained that to me.

Read here the whole FAQ about pointers and arrays.

Elazar Leibovich
  • 32,750
  • 33
  • 122
  • 169
2

i always liked this one:

http://cplusplus.com/doc/tutorial/

and of course this faq

http://www.parashift.com/c++-faq-lite/

clamp
  • 33,000
  • 75
  • 203
  • 299
2

about pointer:

Pointers on C by Kenneth Reek

plan9assembler
  • 2,862
  • 1
  • 24
  • 13
  • that book isn't specifically about pointers, but is about the C language. The title is a pun. However, it is a great book :-). – user83255 May 05 '09 at 14:34
  • I was going to recommend this book if only for the fact that the author used to be an integral member of my schools CS department. I often use header files with his name on them. ;) – Mr. Shickadance May 18 '09 at 13:23
  • "used to be an integral member of my schools CS department." It must really suck to have CS departments with fractional members ;-) – Jonas Kölker May 18 '09 at 13:53
1

This has to be the most articulate & awesome pointer tutorial & reference i have ever come across.

http://cslibrary.stanford.edu/

It does not assume any pre-requisites & it slowly builds from the basics to most advanced topics & has lots of code & sample problems too.

Thanks Nick Parlante for this awesome resource.

Lots of other useful resources are available at http://www-cs-faculty.stanford.edu/~nick/

ashish makani
  • 153
  • 1
  • 1
  • 8
1

I'm studying engineering and we had this little crash course in C and went through this book called "How to program C" by Deitel. It covers all the basics and has a few code samples in it.

However; Pointers can be tricky to get, especially from only reading about them. I strongly recommend this lecture by Richard Buckland about pointers.

Then of course, just start experimenting. It is the best way to learn this subject.

Andrioid
  • 3,362
  • 4
  • 27
  • 31