简体   繁体   中英

Where are the best explanations of variables, pointers, references and memory addresses on the net?

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, ie 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!

C ++中的指针,引用和数组对基础知识有一个很好的解释。

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.

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.

i always liked this one:

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

and of course this faq

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

about pointer:

Pointers on C by Kenneth Reek

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/

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM