exp02_06.c

来自「《C语言程序设计教程、实验与练习》 源文件下载」· C语言 代码 · 共 15 行

C
15
字号
/* this program get the high byte
    and low byte of an int varible */

main()
{
 int hb,lb;
 int a;

 a=0xf234;
 hb=(a>>8)&0x00ff;
 lb=a&0x00ff;
 printf("high byte of a is %d\n",hb);
 printf("low byte of a is %d\n",lb);

 }

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?