C++ hexadecimal addition
Tt is a pointer? You added the pointer to int?

I think your code should be changed to

int TT = 0x 4 10 1b;

int aa = TT+0x 1300 * 4;

Cout & lt& lt hexadecimal & lt& ltaa & lt& ltendl

Last use count

The int pointer plus 1 means that the address of the pointer is increased by 4 bytes. So 0x 1300*4 is equivalent to multiplying by 4.

char * TT =(char *)0x 4 10 1b;

char * aa

aa = TT+0x 1300 * 4;

So the value of aa becomes 0x45c1b.