what's the different between "void (**A)()" and "void *(*A)()"?

This is a discussion on what's the different between "void (**A)()" and "void *(*A)()"? within the C Programming forums, part of the General Programming Boards category; void (**A)() and void *(*A)(), I think they are different,but why?...

  1. #1
    Registered User
    Join Date
    Nov 2001
    Posts
    1

    what's the different between "void (**A)()" and "void *(*A)()"?

    void (**A)() and void *(*A)(),
    I think they are different,but why?

  2. #2
    Registered User jasrajva's Avatar
    Join Date
    Oct 2001
    Posts
    99
    the first ie
    void(**A)()
    is a pointer to a pointer to a function returning void

    the second ie
    void*(*A)()
    is a function pointer to a function that returns a void pointer

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. What exactly does "void" mean?
    By GoldPhoenix in forum C++ Programming
    Replies: 9
    Last Post: 12-27-2006, 09:09 PM
  2. "VOID" as opposed to void
    By Trauts in forum Windows Programming
    Replies: 23
    Last Post: 05-28-2003, 11:56 AM
  3. "void"
    By jjj in forum C Programming
    Replies: 5
    Last Post: 09-08-2002, 01:18 PM
  4. questions about "void"...
    By Gamma in forum C++ Programming
    Replies: 7
    Last Post: 04-13-2002, 11:04 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21