Do you want to find the differences between two strings, as the title of your post suggests, or do you want to find the difference between two hex values, as your example suggests?
Yes, it would be better if you explain both. Is the result same for the both cases?
I need concrete c++ function which can calculate the difference.
You still have not specified which kind of difference you want.
Hex value difference. Thnx in advance.