调用下面函数的正确输出结果是________.int fun(int *x){ *x ++ ;return *x ;}int main(){int a=25;printf("%d", fun(&a));}
查看答案
有以下程序#includeint main(){int m=1,n=2,*p=&m,*q=&n,*r;r=p;p=q;q=r;printf("%d,%d,%d,%d\n",m,n,*p,*q);}程序运行后的输出结果是
A. 1,2,1,2
B. 1,2,2,1
C. 2,1,2,1
D. 2,1,1,2
有以下代码执行后的输出结果是( )。#includeint a;int main(){int b, c;int *p1=&a, *p2=&b, *p=&c;c = *p1 * (*p2);printf("%d\n",*p);return 0;}
A. 0
B. 1
C. 2
D. 以上答案都不对
运行以下代码后的输出结果是()int k=4,m=4, *p1=&k,*p2=&m;printf("%d\n",p1==&m);
A. 4
B. 1
C. 0
D. 运行时出错,无定
运行以下代码后的输出结果是()int k=4,m=4, *p1=&k,*p2=&m;printf("%d\n", *p1==m);
A. 0
B. 1
C. 4
D. 不确定