DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: about BYTE datatype

  1. #1
    Join Date
    Jul 2006
    Posts
    23

    Question about BYTE datatype

    Anybody please explain me the byte data type in C along with a simple program

  2. #2
    Join Date
    Dec 2003
    Posts
    3,366
    there is no such type in c or c++, however some platforms do typedef it for whatever reason.
    A byte is the same as a char or unsigned char on every system I have heard of.
    That would be
    char x;
    or
    unsigned char x;

  3. #3
    Join Date
    Jul 2006
    Posts
    23
    ok thank you

  4. #4
    Join Date
    Nov 2003
    Posts
    4,118
    In C and C++ BYTE is the same as char. In some systems, it's mapped to unsigned char. Notice however that char needn't be an 8 byte datatype; the precise number of bytes is implementation dependent but in practice, most implementations nowadays use 8 bit char. Few use 16 bits.
    Danny Kalev

Similar Threads

  1. Replies: 3
    Last Post: 09-12-2002, 07:25 PM
  2. Replies: 2
    Last Post: 06-18-2002, 09:15 AM
  3. Replies: 0
    Last Post: 04-04-2002, 07:46 PM
  4. Problems with NetAddUser
    By Jeff Morgan in forum VB Classic
    Replies: 2
    Last Post: 02-13-2001, 11:49 AM
  5. Problems with NetAddUser
    By Jeff Morgan in forum VB Classic
    Replies: 0
    Last Post: 02-11-2001, 01:54 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center