Thread: noob silly pointer? question

  1. #1
    Registered User
    Join Date
    Jun 2009
    Location
    Seattle
    Posts
    6

    noob silly pointer? question

    I'm just starting to learn c++ and I was looking over some code in Qt4 and saw a statements that appeared to involve multiple dereference operators like **varname or ***varname. Is this really dereferencing a pointer that points to a pointer that points to a pointer or is it something else entirely?

  2. #2
    Deathray Engineer MacGyver's Avatar
    Join Date
    Mar 2007
    Posts
    3,210
    Could very well be the former.

  3. #3
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Yes, triple *** will dereference a pointer to a pointer to a pointer, and it's not that strange - but not something I've done more than once or twice, to be honest.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. char pointer to pointer question
    By Salt Shaker in forum C Programming
    Replies: 3
    Last Post: 01-10-2009, 11:59 AM
  2. a pointer to a function question..
    By transgalactic2 in forum C Programming
    Replies: 17
    Last Post: 10-21-2008, 11:47 AM
  3. A Silly Question!
    By MK4554 in forum C++ Programming
    Replies: 2
    Last Post: 01-13-2006, 02:49 PM
  4. memory question (pointer related)
    By cjschw in forum C++ Programming
    Replies: 2
    Last Post: 04-30-2004, 01:09 PM
  5. general pointer & malloc question
    By jstn in forum C Programming
    Replies: 2
    Last Post: 05-14-2002, 09:51 AM