I need to write a function which receives one parametrer of type int
(decimal), and returns string
containing the int value in hex, but in format 0xyy.
More than that I want the answer to be in a fixed format of 4 Bytes
For example:
int b = 358;
string ans = function(b);
In this case ans = "0x00 0x00 0x01 0x66"
int a = 3567846;
string ans = function(a);
In this case ans = "0x00 0x36 0x70 0xE6"