Find a certain bits in an integer array?

This is a discussion on Find a certain bits in an integer array? within the C Programming forums, part of the General Programming Boards category; Hello! Ok, here we go. If I have an array of unsorted integers, like: 2342 12344 234 21345 6788 and ...

  1. #1
    Registered User
    Join Date
    Oct 2008
    Posts
    31

    Find a certain bits in an integer array?

    Hello! Ok, here we go.

    If I have an array of unsorted integers, like:

    2342
    12344
    234
    21345
    6788

    and so on, is it possible to do a search of certain bits/bytes/nibbles on each element?

    If so, how?

    If not, how could I store those integers in order to find them?

    Thanks in advance!

  2. #2
    Woof, woof! zacs7's Avatar
    Join Date
    Mar 2007
    Location
    Australia
    Posts
    3,459
    http://www.cprogramming.com/tutorial...operators.html for the bits. They're already in an unsorted array, just use that (or sort it, that'd be faster).

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 16
    Last Post: 05-29-2009, 08:25 PM
  2. Link List math
    By t014y in forum C Programming
    Replies: 17
    Last Post: 02-20-2009, 06:55 PM
  3. load gif into program
    By willc0de4food in forum Windows Programming
    Replies: 14
    Last Post: 01-11-2006, 10:43 AM
  4. Representing a Large Integer with an Array
    By random_accident in forum C++ Programming
    Replies: 3
    Last Post: 03-03-2005, 12:23 PM
  5. Help with an Array
    By omalleys in forum C Programming
    Replies: 1
    Last Post: 07-01-2002, 09:31 AM

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