hex - Java - what does 0xXXXc means? -


i came acrros line:

int b = (0x001c >> 1) 

and don't know little c next 0x001 means. know 0x hex i've never seen c before..

thanks

the c hexadecimal c 12(in decimal).

in case, 0x001c shifted right 1.

in other words 28(in decimal), shifted 1 place right 14(in decimal).

in binary,

0...00 00011100 >> 00000001

gives..

0...00 00001110(in binary)

which is: 14(in decimal) or e(in hex)


Comments

Popular posts from this blog

wordpress - (T_ENDFOREACH) php error -

Export Excel workseet into txt file using vba - (text and numbers with formulas) -

Using django-mptt to get only the categories that have items -