要使C51中的变量用位寻址区的存储单元,可用如下方式___________。
A: unsigned pdata char ver;
B: unsigned data char ver;
C: unsigned bdata char ver;
D: unsigned code char ver;
A: unsigned pdata char ver;
B: unsigned data char ver;
C: unsigned bdata char ver;
D: unsigned code char ver;
举一反三
- 定义一个指向片内RAM40H开始的无符号字节指针的语句是:() A: unsigned char pdata*v=0x40; B: unsigned char data*v=0x40; C: unsigned char xdata*v=0x40; D: unsigned char code*v=0x40;
- 使用Keil uVision编写51单片机的C程序时,若定义一个变量x,并由编译器将其分配到外部RAM中,应定义()语句。 A: code unsigned char x; B: pdata unsigned char x; C: idata unsigned char x; D: xdata unsigned char x;
- 将变量temp定义为片外RAM区的无符号字符型变量的正确写法是( ) A: unsigned char data temp B: signed char data temp C: unsigned char code temp D: unsigned char xdata temp
- 使用Keil uVision编写51单片机的C程序时,若定义一个变量x并由编译器将其分配到片外RAM中,应定义( )语句。【蓝桥杯客观题】 A: unsigned char code x; B: unsigned char pdata x; C: unsigned char idata x; D: unsigned char xdata x;
- unsigned char bdata X=10; unsigned int data Y=1; unsigned char code Z=2; 以下正确的语句是_______? A: X.2=0; B: X=0x0F; C: Y=500; D: Z=10;