save value as Pointer address

Good Night/Morning CplusCplus
1
2
int i = 123456;
how can save Value i as address. Like: printf("Address:= %08X\n", i);





I'm late, I apologize

and my question is a completely Wrong :(

{
take value i as address without any format:
e.g.
0x00406262
reserve it 0x6262400
put it in array
arr[0] = 0x62
arr[1] = 0x62
arr[2] = 0x40
arr[3] = 0x00
}

thanks TheRabbitologist
Topic archived. No new replies allowed.