1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Taking difference of two arrays of characters

Discussion in 'C' started by HAIDER69, Jun 17, 2010.

  1. HAIDER69

    HAIDER69 New Member

    Joined:
    Jun 17, 2010
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    both arrays contain 1750 characters and the difference needs to be stored in third array
    Can any 1 help me with code please
    Thanks in advance

    Regards HAIDER
     
  2. xpi0t0s

    xpi0t0s Mentor

    Joined:
    Aug 6, 2004
    Messages:
    3,012
    Likes Received:
    203
    Trophy Points:
    0
    Occupation:
    Senior Support Engineer
    Location:
    England
    Start with a short program that just compares the first character in the first two arrays and displays the difference.

    Then you can add (a) storing the difference in a new array and (b) a loop to cover the whole array.

    Take it a step at a time and you'll get there. Don't try to write the whole thing in one go.
     

Share This Page