i =0xa1; i4=多少
i = 0xa1 i << 4 = ?
In binary, 0xa1 is represented as 10100001. When we shift the bits to the left by 4 positions, we get 00010000.
In hexadecimal, 00010000 is represented as 0x10.
Therefore, i << 4 equals 0x10.
原文地址: https://www.cveoy.top/t/topic/hVFE 著作权归作者所有。请勿转载和采集!