dword ip = 3408138412
輸入ip和255“相與”:
3408138412 and 255 =172;
輸入ip右移8位,再和255“相與”:
3408138412 rsh 8 and 255 = 16;
輸入ip右移16位,再和255“相與”:
3408138412 rsh 16 and 255 = 36;
輸入ip右移24位,再和255“相與”:
3408138412 rsh 24 and 255 = 203;
ip1&0xff, (ip1>>8)&0xff,(ip1>>16)&0xff,(ip1>>24)&0xff