题目内容

若有:int x[10] = {1,2,3}, *m = x; 则不能表示地址的表达式是( )。

A. x
B. &x[0]
C. *m
D. m

查看答案
更多问题

若有:int a[10], *p = a; 则不与 a[5]等价的是( )。

A. p + 5
B. p[5]
C. *(p + 5)
D. *(a + 5)

下列程序的输出结果是________。#includeint main(void){int a = 5, *b, **c;c = &b;b = &a;printf("%d\n", **c);return 0;}

下列程序的输出结果是________。#includeint main(void){ int a, b, k = 4, m = 6, *p1 = &k, *p2 = &m;a = p1 == &m;b = (*p1) / (*p2) + 7;printf("%d#%d\n", a, b);return 0;}

下列程序的输出结果是________。#includevoid swap(int *a, int *b){int *t;t = a;a = b;b = t;}int main(void){ int x = 3, y = 5, *p = &x, *q = &y;swap(p, q);printf("%d#%d\n", *p, *q);return 0;}

答案查题题库