Thread: Need help with arrays operations

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Sep 2020
    Posts
    425
    Had a quick look at the compare issue.

    If only one of the numbers is positive, it's the largest
    If both are positive, you need to return big_cmp_abs()
    If both are negative, you need to return -1 * cmp_abs()

    Or something like that.

    Also, big_cmp_abs seems wrong. The nested loops don't make sense...
    Last edited by hamster_nz; 12-18-2021 at 08:59 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Arrays: General Operations and Algorithms.
    By skyliner in forum General Discussions
    Replies: 12
    Last Post: 09-07-2014, 01:00 AM
  2. BCD operations
    By ikki in forum C Programming
    Replies: 4
    Last Post: 01-02-2013, 03:20 PM
  3. Bit operations?
    By yu_raider in forum C Programming
    Replies: 5
    Last Post: 03-17-2009, 11:31 AM
  4. doing floating operations using integer operations
    By ammalik in forum C Programming
    Replies: 10
    Last Post: 08-15-2006, 04:30 AM
  5. what do these operations do?
    By the_head in forum C Programming
    Replies: 4
    Last Post: 01-29-2005, 02:45 PM

Tags for this Thread