Thread: void question

  1. #1
    Registered User
    Join Date
    Sep 2002
    Posts
    4

    void question

    Hey does anybody know if this is possible "void **" Can you actually have a pointer point to a void pointer?

    Can there be a boolen pointer? ex: boolean *test. I have never seen one so i'm not sure.

    thanks...

  2. #2
    ....
    Join Date
    Aug 2001
    Location
    Groningen (NL)
    Posts
    2,380
    Yes, you can have void**. A void-pointer is a generic pointer which you can use to point to variables of different types. In this way you could create a two-dimensional array of chars, ints or whatever.

    If you have type boolean available, then it is possible, depends on your system.

  3. #3
    Registered User
    Join Date
    Sep 2002
    Posts
    4
    How does the "void **" work?

  4. #4
    pronounced 'fib' FillYourBrain's Avatar
    Join Date
    Aug 2002
    Posts
    2,297
    simple.

    a void * will live in some memory location.

    a void * is thus a type

    a "type" * will point to a memory location

    therefore if type = void *
    void ** would point to it.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Inserting a swf file in a windows application
    By face_master in forum Windows Programming
    Replies: 12
    Last Post: 05-03-2009, 11:29 AM
  2. Case Statement
    By danlee58 in forum C Programming
    Replies: 16
    Last Post: 11-23-2008, 08:46 PM
  3. Interpreter.c
    By moussa in forum C Programming
    Replies: 4
    Last Post: 05-28-2008, 05:59 PM
  4. Half-life SDK, where are the constants?
    By bennyandthejets in forum Game Programming
    Replies: 29
    Last Post: 08-25-2003, 11:58 AM
  5. what does this warningmean???
    By kreyes in forum C Programming
    Replies: 5
    Last Post: 03-04-2002, 07:53 AM