I'm currently reading up on binary and hexadecimal number manipulation and I'm finding it difficult to complete a task and was wondering if anyone can help clarify this question for me.
I have a hexadecimal number '04831037' and I need to replace the first number (0) with a '1' via a Pascal program. I'm not sure how to go about doing this.
I know how to convert an integer into a hexadecimal value via:
var
iNumber : Integer;
begin
iNumber := 75698231;
writeln(IntToHex(iNumber, 8));
end.
> Output: 04831037
But now I am confused on how to replace a single number in the output. Any help would be greatly appreciated