Pass a Hex value into a unsigned int function

  • Thread starter Thread starter Jason
  • Start date Start date
J

Jason

Hello


I've got a get hex value 0X500000 and I'd like to pass it into a function
that has a signature of Foo(unsigned int * address) {}

Do I need to convert the hex value to type INT? How would I do that?

Thanks
 
Jason said:
Hello


I've got a get hex value 0X500000 and I'd like to pass it into a function
that has a signature of Foo(unsigned int * address) {}

Do I need to convert the hex value to type INT? How would I do that?

I'm not sure what you are really asking. Why not just

unsigned int n = 0X500000;
Foo(&n);

?
 
Back
Top