Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   Taking difference of two arrays of characters (http://www.go4expert.com/forums/taking-difference-arrays-characters-t22458/)

HAIDER69 17Jun2010 11:53

Taking difference of two arrays of characters
 
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

xpi0t0s 18Jun2010 12:11

Re: Taking difference of two arrays of characters
 
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.


All times are GMT +5.5. The time now is 15:02.