3.下面函数定义中正确的是( )。
A. double fun(double f1, double f2){ }
B. double fun(double f1; double f2){ }
C. double fun(double f1, double f2); { }
D. double fun(double f1, f2){ }
https://www.shititong.cn/cha-kan/shiti/0005e1ec-b3f4-e9a8-c003-bc7499099f00.html
点击查看答案
12.已有定义“int a=2, b=3; float m=4.5, n=3.5;”,则表达式“( )( )/2+( )m%( )n”的值是( )。
https://www.shititong.cn/cha-kan/shiti/0005e1ec-b3ef-2518-c003-bc7499099f03.html
点击查看答案
41.D42.D43.D44.D45.B46.D47.D48.B49.C50.A
https://www.shititong.cn/cha-kan/shiti/0005e1ec-b3ef-e868-c003-bc7499099f00.html
点击查看答案
14.在c程序中,用( )表示逻辑值“真”。
A. 小于0的数
B. 非0的数
C. 非1的数
D. 大于0的数
https://www.shititong.cn/cha-kan/shiti/0005e1ec-b3f1-1530-c003-bc7499099f00.html
点击查看答案
10.定义外部函数的关键字是________。
https://www.shititong.cn/cha-kan/shiti/0005e1ec-b3f4-ddf0-c003-bc7499099f01.html
点击查看答案
35.下列正确的字符串常量是________。
A. 'abc'
B. '\t'
C. "\\t"
D. 97
https://www.shititong.cn/cha-kan/shiti/0005e1ec-b3ef-8e90-c003-bc7499099f00.html
点击查看答案
23.下面程序运行时输出到屏幕的结果是________。
#include
void fun( )
{if( )
printf( );
else
fun(a+1,b);
printf( );
}
int main()
{fun(1, 2); return 0;}
https://www.shititong.cn/cha-kan/shiti/0005e1ec-b3f5-b4c8-c003-bc7499099f00.html
点击查看答案
12.下面程序的功能是:输出100以内(不含100)能被3整除且个位数为6的所有整数。请填空。
#include
int main()
{int i,j;
for(i=0;( (24) );i++)
{j=i*10+6;
if(( (25) ))
printf("%3d",j);
}
return 0;
}
https://www.shititong.cn/cha-kan/shiti/0005e1ec-b3f2-5198-c003-bc7499099f00.html
点击查看答案
17.inr18.you&me
(1) k(2)queue[k](3)k!=m
(4) k=i(5) k/=10(6) break
(7) a[j]-a[i](8) flag=1(9) a[i-2]+a[i-1]
(10) a[i]%j==0(11) k=0(12) pow(10,k-1)
(13) n%10(14) d!=i(15) m*10+a[i]
(16) break(17) a[j+1]=a[j](18) d++
(19) i<N/2(20) a[N-i-1]=temp(21) continue
(22) sum%10(23) b[k](24) a[j]=a[j-1]
(25) i%10*10+i/10(26) flag=0(27) flag
(28) a[i]<a[j](29) a[j+1]=a[j](30) a[i]=n
(31) n/=10(32) j--(33) i>=j
(34) a[0](35) a[i]=a[j](36) a[i]=x
(37) sum=0(38) sum==m(39) ( )/2-1
(40) n=a[i+1](41) r=m%n(42) i<j
(43)j--(44)min(45) temp
(46)a[N-1](47) k++(48) b[j++]=a[i]
(49)i=0(50)N-1-i(51) max=j
(52)max==i(53) m/=10(54) m*10+c[k]
(55)i%3==0(56) m/=10(57) a[n++]=i
(58)0(59)a[j]>a[j+1](60) flag=1
(61)( )/2(62)find=1(63) left=mid+1
(64)str[i]!='\0'(65)str+i(66) a[i][i]=1
(67)a[i-1][j](68) printf(" ")
https://www.shititong.cn/cha-kan/shiti/0005e1ec-b3f4-8be8-c003-bc7499099f01.html
点击查看答案
1.已有定义“float x=3.14159; int n;”,则计算表达式“n = x*100+0.5, x= n/100.0”后x的值是()。
A.
B.
C.
D.
E.
F.
G.
H.
I.
J.
解析:
https://www.shititong.cn/cha-kan/shiti/0005e1ec-b3ef-1960-c003-bc7499099f02.html
点击查看答案