Why does the following code return value: 576584465919122121 instead of 2?
1 2
it = set_symmetric_difference(array1.begin(),array1.end(),array2.begin(),array2.end(),result.begin());
out << *it;
Or should I use this instead ? ( Using this returns void -- no result / blank )
1 2 3 4 5
set_symmetric_difference(array1.begin(),array1.end(),array2.begin(),array2.end(),result.begin());
for (it = result.begin(); it != result.end(); ++it)
{
out << *it;
}