计算机二级C语言程序设计
免费题库
设变量x为float型且已赋值,则以下语句中能将x中的数值保留到小数点后两位,并将第三位四舍五入的是______。
若定义int a=5;int *p=&a;,那么以下值为6的表达式是______。
C语言运算对象必须是整型的运算符是______。
有以下程序:struct s{int x,y;} data[2]={10,100,20,200};main(){ struct s *p=data;printf("%d\n",++(p->x));}程序运行后的输出结果是______。
有以下程序#include void fun(int *x,int s,int e){ int i,j,t;for(i=s,j=e; i
下面程序void prtv(int *x){ printf("%d\n",++*x);}main(){ int a=25;prtv(&a);}的输出是______。
有以下程序#include main(){ int i=0, sum=1;do{sum += i++ ;} while( i
以下有4组用户标识符,其中合法的一组是______。A)FOR B)4d C)f2_G3 D)WORD-sub DO IF voidCase Size abc define
有以下程序#include #define FNA(x) x*x#define FNB(x) x+xmain(){ int a=2,b=4;printf("%d,%d\n",FNA(FNB(a)),FNB(FNA(b)));} 程序运行后的输出结果是______。
以下针对相应语句的注释中,说法错误的是______。
«
1
2
...
35
36
37
38
39
40
41
42
43
»