Thread: What's the difference?

  1. #1
    Registered User
    Join Date
    Feb 2003
    Posts
    63

    Red face What's the difference?

    I just wonder if there is any difference between these two lines or is it just 2 ways of doing the same thing?

    unsigned char **variable = NULL;
    unsigned char *variable = NULL;
    You cantīt teach an old dog new tricks.

  2. #2
    Programming Sex-God Polymorphic OOP's Avatar
    Join Date
    Nov 2002
    Posts
    1,078
    different.

    the first is a pointer to a pointer to an unsigned char

    the second is simply a pointer to an unsigned char

  3. #3
    Registered User
    Join Date
    Feb 2003
    Posts
    63

    Talking

    Originally posted by Polymorphic OOP
    different.

    the first is a pointer to a pointer to an unsigned char

    the second is simply a pointer to an unsigned char
    Thanks
    You cantīt teach an old dog new tricks.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Review required for program of date difference
    By chottachatri in forum C Programming
    Replies: 6
    Last Post: 10-31-2008, 11:46 AM
  2. Difference Equations / Recurrence Relations
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 4
    Last Post: 10-05-2007, 10:26 AM
  3. What's the difference between var++ and ++var
    By ulillillia in forum C Programming
    Replies: 6
    Last Post: 05-31-2007, 02:27 AM
  4. how to get difference of digits
    By Leeman_s in forum C++ Programming
    Replies: 5
    Last Post: 12-20-2001, 08:32 PM
  5. What is the Difference between ANSI C and non-ANSI C ?
    By Unregistered in forum C Programming
    Replies: 1
    Last Post: 11-24-2001, 06:55 AM