Search:

Type: Posts; User: Spono

Search: Search took 0.01 seconds.

  1. Bitwise Operators - Setting and Retreiving a Bit

    I need to create a function that will set the ith bit of its argument. It should do nothing if it is out of range. The function prototype should be as follows:

    unsigned long set_bit(unsigned...
  2. Replies
    5
    Views
    3,752

    Find all factors of a number

    I have to create a function that finds all factors of any particular number. This is what i've got so far, but it doesn't seem to work all the time. It only really divides the number you input by...
Results 1 to 2 of 2