Thread: dangerous pointers

  1. #16
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    >>Or does it not make a difference?
    Use whatever makes you more comfortable.

    Indexing a multi-dimensional array can take longer as there's some maths that has to happen before you actually get the data. Pointer notation can be used to overcome this, when done correctly. If your program is really desperate for speed, I guess you should be using pointers, but most of the time it isn't an issue, and you shouldn't worry about it.
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

  2. #17
    Registered User
    Join Date
    Jun 2004
    Posts
    93
    Great find caround, and great information Prelude and Hammer.

    Definitely sheds some light on this pointer madness.

  3. #18
    Registered User caroundw5h's Avatar
    Join Date
    Oct 2003
    Posts
    751
    Quote Originally Posted by Beast()
    Great find caround, and great information Prelude and Hammer.

    Definitely sheds some light on this pointer madness.
    Glad I could be of help. It's in C Primer plus third editon by stephen Prata. Pretty decent book.
    Warning: Opinions subject to change without notice

    The C Library Reference Guide
    Understand the fundamentals
    Then have some more fun

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Variable pointers and function pointers
    By Luciferek in forum C++ Programming
    Replies: 11
    Last Post: 08-02-2008, 02:04 AM
  2. Using pointers to pointers
    By steve1_rm in forum C Programming
    Replies: 18
    Last Post: 05-29-2008, 05:59 AM
  3. Request for comments
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 01-02-2004, 10:33 AM
  4. Staticly Bound Member Function Pointers
    By Polymorphic OOP in forum C++ Programming
    Replies: 29
    Last Post: 11-28-2002, 01:18 PM