I know this is using C. But if i was using the stdlib.h to use C in C++, can i somehow save the output into a variable. That way i can save the value for later use.
something like...
int a = 15;
int b = 7;
int hexValue = printf ( "%x\n", a + b );
But something that works.
I'm just trying to find a simple way to add two hex numbers together but in C++;
Thanks