unsigned char

This is a discussion on unsigned char within the C++ Programming forums, part of the General Programming Boards category; I came accros some code in a DX tutorial where a unsigned char was declared what would the point of ...

  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,198


    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,198
    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 05: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, 03:38 PM
  4. Swap a bit
    By mr_nice! in forum C Programming
    Replies: 7
    Last Post: 03-01-2004, 02:15 AM
  5. String sorthing, file opening and saving.
    By j0hnb in forum C Programming
    Replies: 9
    Last Post: 01-23-2003, 12:18 AM

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