单项选择题
请选出以下程序的输出结果 ( ) #include<stdio.h> sub(x,y,z) int x,y,*z; { *2=y-x;} main() { int a,b,c; sub(10,5,&A) ;sub(7,a,&B) ;sub(a,b,&C) ; printf("%d,%d,%d\n",a,b,C) ; }
A.5,2,3
B.-5,-12,-7
C.-5,-12,-17
D.5,-2,-7
点击查看答案
<上一题
目录
下一题>
热门
试题
单项选择题
以下关于宏与函数的叙述中正确的是 ( )
A.使用函数或宏命令对C的源程序都役有影响
B.函数具有类型,宏不具有类型
C.函数调用和带参的宏调用都是将实参的值传给形参
D.使用函数比使用宏运行速度快
点击查看答案
单项选择题
以下程序的输出结果是 ( ) #include<stdio.h> #include<string.h> main() {char str[12]={'s','t','r','i','n','g'}; printf( %d n ,strlen(str)); }
A.6
B.7
C.11
D.12
点击查看答案
相关试题
下列程序 void func1(int i); void...
在数据库设计中,将E-R图转换成关系数据模...
在下列语句中,正确的是 ( )
设a,b均为float型变量,则以下非法的赋值...
以下叙述中正确的是 ( )