This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

subtraction of 2 ascii arrays

Hey i wants to get idea for how to subtact two arrays of ascii chracters of amount....

e.g.

unsigned char ary1[3],ary2[3],ary[3];

ary1[1]=0x32; //0x32 is ascii code for 2
ary1[2]=0x31; //same 0x31 is ascii code of 1
ary1[3]=0x34;

ary2[1]=0x35;
ary2[2]=0x32;
ary2[3]=0x35;

Please give me idea.....
I am facing problem for carry forwarding....

Parents
  • "but then problem is that how to subtract arrays of hex numbers."

    Eh???

    "direct subtraction rather then char wise subtraction"

    Eh???

    "forwarding carry to next."

    How many times does it have to be said: think about how you would do this manually with pencil and paper.

    If you don't understand the basics of how to do it yourself, how can you hope to implement it in a program??

Reply
  • "but then problem is that how to subtract arrays of hex numbers."

    Eh???

    "direct subtraction rather then char wise subtraction"

    Eh???

    "forwarding carry to next."

    How many times does it have to be said: think about how you would do this manually with pencil and paper.

    If you don't understand the basics of how to do it yourself, how can you hope to implement it in a program??

Children