Thread: unsigned char

  1. #1
    Banned
    Join Date
    Oct 2004
    Posts
    250

    unsigned char

    I came accros some code in a DX tutorial where a unsigned char was declared what would the point of this be ?
    Code:
    unsigned char *pVertices;

  2. #2
    Registered User
    Join Date
    Aug 2003
    Posts
    1,218


    I have no idea what you just meant there.

    That is a pointer to an unsigned char. What the point is, i have no clue.

  3. #3
    Banned
    Join Date
    Oct 2004
    Posts
    250
    I mean why would you declare a char unisgned :/

  4. #4
    Registered User
    Join Date
    Aug 2003
    Posts
    1,218
    because otherwise it is signed or because a function takes unsigned char pointer as an argument or returns an unsigned char or because you want to have values from 0 255 instead of -127 to 128 (I think) or some other reason.
    Last edited by Shakti; 01-29-2005 at 06:28 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 7
    Last Post: 06-16-2006, 09:23 PM
  2. Obtaining source & destination IP,details of ICMP Header & each of field of it ???
    By cromologic in forum Networking/Device Communication
    Replies: 1
    Last Post: 04-29-2006, 02:49 PM
  3. problem with reading and writing
    By yahn in forum C++ Programming
    Replies: 2
    Last Post: 01-03-2006, 04:38 PM
  4. Swap a bit
    By mr_nice! in forum C Programming
    Replies: 7
    Last Post: 03-01-2004, 03:15 AM
  5. String sorthing, file opening and saving.
    By j0hnb in forum C Programming
    Replies: 9
    Last Post: 01-23-2003, 01:18 AM