Name: Anonymous 2010-09-25 23:57
unsigned x = 1
((!!x)<<31>>31 produces -1
I just learned that bang causes unsigned values to be interpreted as signed values, anyone know the reasoning behind this?
((!!x)<<31>>31 produces -1
I just learned that bang causes unsigned values to be interpreted as signed values, anyone know the reasoning behind this?