+ 1
How to assign a hexa value to int variable
I want to assign int variable a 256 value in hexadecimal
2 Respostas
+ 1
@akub thnx
0
int a = 0x(insert your hex here)
If you are lazy and want to output some dec to hex I'd recommend using std::hex:
std::cout<< std::hex << 70;