int main(void)
{
int tint, t = 0x99;
tint = (t >> 4) * 10 + t & 0x0f;
printf("%d\n", tint);
return 0;
}
F:\>gcc -o test test.c
F:\>test
3
F:\>cl test.c
用于 80x86 的 Microsoft (R) 32 位 C/C++ 优化编译器 14.00.50727.42 版
版权所有(C) Microsoft Corporation。保留所有权利。
test.c
Microsoft (R) Incremental Linker Version 8.00.50727.42
Copyright (C) Microsoft Corporation. All rights reserved.
/out:test.exe
test.obj
F:\>test
3
F:\>cl test.c
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 15.00.20706.01 for 80x86
Copyright (C) Microsoft Corporation. All rights reserved.
test.c
Microsoft (R) Incremental Linker Version 9.00.20706.01
Copyright (C) Microsoft Corporation. All rights reserved.