程序:char xdata *pX; pX = 0xA0; *pX = 0x80,其中pX是
举一反三
- 【单选题】下列语句在 xdata 存储区里定义一个指向 char 类型变量的指针变量 px ,正确的是() ( 默认为 SMALL 编译模式 ) A. char * xdata px B. char xdata * px C. char xdata * data px D. char * px xdata
- 若有如下定义语句:int x;则经过( )后,语句*px=0;,可将x值置为0。 A: int *px; B: int *px=&x; C: float *px; D: float *px=&x;
- 有以下程序段:#include int main(){int x[ ] = {10, 20, 30}; int *px = x;printf("%d, ", ++*px); printf("%d, ", *px); px = x;printf("%d, ", (*px)++); printf("%d, ", *px); px = x;printf("%d, ", *px++); printf("%d, ", *px); px = x;printf("%d, ", *++px); printf("%d\n", *px);return 0;}程序运行后的输出结果是( ) A: 20, 10, 11, 10, 11, 10, 11, 10 B: 11, 11, 11, 12, 12, 20, 20, 20 C: 20, 10, 11, 20, 11, 12, 20, 20 D: 11, 11, 11, 12, 12, 13, 20, 20
- 有以下程序段:#include stdio.hint main(){int x[ ] = {10, 20, 30}; int *px = x;printf(%d, , ++*px); printf(%d, , *px); px = x;printf(%d, , (*px)++); printf(%d, , *px); px = x;printf(%d, , *px++); printf(%d, , *px); px = x;printf(%d, , *++px); printf(%d\n, *px);return 0;}程序运行后的输出结果是( )。 A: 11, 11, 11, 12, 12, 20, 20, 20 B: 20, 10, 11, 10, 11, 10, 11, 10 C: 11, 11, 11, 12, 12, 13, 20, 20 D: 20, 10, 11, 20, 11, 12, 20, 20
- 一个点(Px, Py, Pz)的齐次坐标描述为( ) A: [Px, Py, Pz]T B: [Px, Py, Pz, 0]T C: [Px, Py, Pz, 1]T D: (Px, Py, Pz)