Have K&R2, looking for simpler resource on pointers 
Author Message
 Have K&R2, looking for simpler resource on pointers

I took a class in C programming, but the one thing I still don't have a
solid grasp on are pointers.  Can anyone recommend me to a resource
(book, online documentation, etc.) that explains pointers in more
understandable way and that has more examples?


Sun, 21 Aug 2005 08:16:44 GMT  
 Have K&R2, looking for simpler resource on pointers

Quote:
> I took a class in C programming, but the one thing I still don't have a
> solid grasp on are pointers.  Can anyone recommend me to a resource
> (book, online documentation, etc.) that explains pointers in more
> understandable way and that has more examples?

http://pw1.netcom.com/~tjensen/ptr/pointers.htm

-Mike



Sun, 21 Aug 2005 08:25:38 GMT  
 Have K&R2, looking for simpler resource on pointers

Quote:

> I took a class in C programming, but the one thing I still don't
> have a solid grasp on are pointers.  Can anyone recommend me to a
> resource (book, online documentation, etc.) that explains pointers
> in more understandable way and that has more examples?

Reread K&R, slowly. Don't skim. Do the examples. It is all there.

--

   Available for consulting/temporary embedded and systems.
   <http://cbfalconer.home.att.net>  USE worldnet address!



Sun, 21 Aug 2005 11:55:42 GMT  
 Have K&R2, looking for simpler resource on pointers

Quote:

> I took a class in C programming, but the one thing I still don't have a
> solid grasp on are pointers.  Can anyone recommend me to a resource
> (book, online documentation, etc.) that explains pointers in more
> understandable way and that has more examples?

Here's a link to an unconventional post on this newsgroup some time ago,
explaining pointers:

        http://tinyurl.com/6vw8

Even if you don't learn much, at least you'll laugh a little :)

Stig
--
brautaset.org



Sun, 21 Aug 2005 16:16:43 GMT  
 Have K&R2, looking for simpler resource on pointers
Think of the register (or memory) as follows:
WORD balance
WORD address
MOV balance, 100
MOV address, 200
MOV [address], 300

To the machine (computer), a register (or memory) stores something, that
something can be the data you are looking for, or an address (treasure-hunt
map) that leads you to the data. The 'address' in this case is a pointer
that points to where (location 200) the data will be stored.
The balance in this case, stores 100, but it also has a location, except we
may not care where it is.
When you think of it in assembly language sense, pointer should come easier.


Quote:
> I took a class in C programming, but the one thing I still don't have a
> solid grasp on are pointers.  Can anyone recommend me to a resource
> (book, online documentation, etc.) that explains pointers in more
> understandable way and that has more examples?



Sun, 21 Aug 2005 16:37:04 GMT  
 Have K&R2, looking for simpler resource on pointers

Quote:


> > I took a class in C programming, but the one thing I still don't have a
> > solid grasp on are pointers.  Can anyone recommend me to a resource
> > (book, online documentation, etc.) that explains pointers in more
> > understandable way and that has more examples?

> Here's a link to an unconventional post on this newsgroup some time ago,
> explaining pointers:

>         http://tinyurl.com/6vw8

> Even if you don't learn much, at least you'll laugh a little :)

Haven't seen Pony around here. I guess Pony graduated and got that job with the
government...

        david :-)

--
fortran was the language of choice
for the same reason that three-legged races are popular.
        -- Ken Thompson, "Reflections on Trusting Trust"



Sun, 21 Aug 2005 22:05:03 GMT  
 Have K&R2, looking for simpler resource on pointers

Quote:

> I took a class in C programming, but the one thing I still don't have a
> solid grasp on are pointers.  Can anyone recommend me to a resource
> (book, online documentation, etc.) that explains pointers in more
> understandable way and that has more examples?

There's "Understanding Pointers in C" by Yashwant Kanetkar. Great book.

-vish



Mon, 22 Aug 2005 04:15:53 GMT  
 
 [ 7 post ] 

 Relevant Pages 

1. K&R2: Chaptger 5: Pointers and Arrays

2. K&R1 vs. K&R2

3. SIMPLE malloc & pointer question

4. Newbie getting runtime Exception (STATUS_ACCESS_VIOLATION) trying to implement Ex. 2-4 from K&R2

5. K&R2's implicit declaration of exit()

6. New K&R2 exercise: fix getint

7. In the reference manual of K&R2 (2)

8. k&r2 question 4.3

9. k&r2 advice

10. k&r2 question

11. help in K&R2

12. One more trivial question on K&R2?

 

 
Powered by phpBB® Forum Software