Thread: Hex digits stored in char array.

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Prefixing numbers with a zero, with regards to integer constants, gives you octal. Write a program to move through the bits of the variable (read the bit shifting FAQ), and if set, place a 1, else a 0.


    Quzah.
    Hope is the first step on the road to disappointment.

  2. #2
    Registered User
    Join Date
    Nov 2005
    Posts
    9
    Quote Originally Posted by quzah
    Prefixing numbers with a zero, with regards to integer constants, gives you octal. Write a program to move through the bits of the variable (read the bit shifting FAQ), and if set, place a 1, else a 0.
    Quzah.
    Too bad it doesn't give me binary because then my problems would be solved. Alright, I'll take a look at the bit shifting facts, thanks for the tip.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 3
    Last Post: 11-17-2008, 12:36 PM
  2. Replies: 11
    Last Post: 03-24-2006, 11:26 AM
  3. Need help understanding info in a header file
    By hicpics in forum C Programming
    Replies: 8
    Last Post: 12-02-2005, 12:36 PM
  4. fill unsigned char array with hex values
    By luigi40 in forum C Programming
    Replies: 1
    Last Post: 06-25-2005, 05:56 AM
  5. Hi, could someone help me with arrays?
    By goodn in forum C Programming
    Replies: 20
    Last Post: 10-18-2001, 09:48 AM