首页
文化综合T版
试题篮(
)
全景学练考
考点导航
[ 所有信息 ][ 单选题 ] 列表
单选题
多选题
判断题
填空题
解答题
解析题
有以下程序:
#include <stdio.h>
main()
{
int a= 1,b=0;
printf("%d,",b=a+b);
printf("%d\n",a=2*b);
}
程序运行后的输出结果是( )。
* .*,*(此内容仅VIP会员可见)
* .*,*(此内容仅VIP会员可见)
* .*,*(此内容仅VIP会员可见)
* .*,*(此内容仅VIP会员可见)
收藏
纠错
加入试题篮
有以下程序段:
char ch;
int k;
ch='a';
k = 12;
printf("%c,%d,",ch,ch,k);
printf("k=%d\n",k);
已知字符a 的ASCII码十进制值为97,则执行上述程序段后输出的结果 是( )。
* .**********************(此内容仅VIP会员可见)
* .*************,*********(此内容仅VIP会员可见)
* .*,**,***= **(此内容仅VIP会员可见)
* .*,**,*= **(此内容仅VIP会员可见)
收藏
纠错
加入试题篮
#include <stdio.h>
main()
{
int k=- 17;
printf("%d,%o,%x\n",k,1-k,1-k);
}
程序的运行结果是( )。
* .- **,**,**(此内容仅VIP会员可见)
* .- **,**,**(此内容仅VIP会员可见)
* .- **,-**,-**(此内容仅VIP会员可见)
* .**,**,**(此内容仅VIP会员可见)
收藏
纠错
加入试题篮
以下选项中,不能对主函数中变量i和j的值进行交换的程序是 ( )。
* .
#******* <*****.*>
**** ****(*** **, *** **)
{
*** **;
** = **;
** = **;
** = **;
} (此内容仅VIP会员可见)
* .
#******* <*****.*>
**** ****(*** **, *** **)
{
*** *;
* = **;
** = **;
** = *;
}
****(此内容仅VIP会员可见)
* .
#******* <*****.*>
#******* <******.*>
**** ****(*** **, *** **)
{
*** **;
* = (*** *)**(此内容仅VIP会员可见)
* .
#******* <*****.*>
**** ****( *** **, *** **)
{
*** *;
* = **;
** = **;
** = *;
}
***(此内容仅VIP会员可见)
收藏
纠错
加入试题篮
有以下程序:
#include <stdio.h>
int *f(int *s,int *t)
{
if(*s < *t)*s=*t;
return s;
}
main()
{
int i=3,j=5,*p=&i,*q=&j,*r;
r=f(p,q);
printf("%d,%d,%d,%d,%d\n",i,j,*p,*q,*r);
}
程序的运行结果是( )。
* .*,*,*,*,*(此内容仅VIP会员可见)
* .*,*,*,*,*(此内容仅VIP会员可见)
* .*,*,*,*,*(此内容仅VIP会员可见)
* .*,*,*,*,*(此内容仅VIP会员可见)
收藏
纠错
加入试题篮
有以下程序:
#include <stdio.h>
void f(int*p,int*q);
main()
{
int m= 1,n=2,*r=&m;
f(r,&n);
printf("%d,%d",m,n);
}
void f(int*p,int*q)
{
p=p+1;
*q=*q+1;
}
程序运行后的输出结果是( )。
* .*,*(此内容仅VIP会员可见)
* .*,*(此内容仅VIP会员可见)
* .*,*(此内容仅VIP会员可见)
* .*,*(此内容仅VIP会员可见)
收藏
纠错
加入试题篮
若有以下程序
#include <stdio.h>
void sp(int *a)
{
int b=2;
a=&b;
*a=*a*2;
printf("%d,",*a);
}
main()
{
int k=3,*p=&k;
sp(p);
printf("%d,%d\n",k,*p);
}
则程序的输出结果是( )。
* .*,*,*(此内容仅VIP会员可见)
* .*,*,*(此内容仅VIP会员可见)
* .*,*,*(此内容仅VIP会员可见)
* .*,*,*(此内容仅VIP会员可见)
收藏
纠错
加入试题篮
有以下程序
#include <stdio.h>
void fun(int x,int y,int *c,int *d)
{
*c=x+y;
*d=x-y;
}
main()
{
int a=4,b=3,c=0,d=0;
fun(a,b,&c,&d);
printf("%d %d\n",c,d);
}
程序的输出结果是( )。
* .* *(此内容仅VIP会员可见)
* .* *(此内容仅VIP会员可见)
* .* *(此内容仅VIP会员可见)
* .* *(此内容仅VIP会员可见)
收藏
纠错
加入试题篮
有以下程序
#include <stdio.h>
void fun(int *p,int *q)
{
int t;
t = *p;
*p = *q;
*q = t;
*q = *p;
}
main()
{
int a = 0,b = 9;
fun(&a,&b);
printf("%d %d\n",a,b);
}
程序的输出结果是( )。
* .* *(此内容仅VIP会员可见)
* .* *(此内容仅VIP会员可见)
* .* *(此内容仅VIP会员可见)
* .* *(此内容仅VIP会员可见)
收藏
纠错
加入试题篮
有以下程序
#include <stdio.h>
void fun1(char *p)
{
char *q;
q=p;
while(*q!='\0')
{
(*q)++;
q++;
}
}
main()
{
char a[]= {"Program"},*p;
p=&a[3];
fun1(p);
printf("%s\n",a);
}
程序执行后的输出结果是( )。
* .*******(此内容仅VIP会员可见)
* .*******(此内容仅VIP会员可见)
* .*******(此内容仅VIP会员可见)
* .*******(此内容仅VIP会员可见)
收藏
纠错
加入试题篮
有以下程序
#include <stdio.h>
void fun(char *a, char *b)
{
while(*a=='*') a++;
while(*b=*a)
{
b++;
a++;
}
}
main()
{
char *s="*****a*b****" , t[80];
fun(s,t);
puts(t);
}
程序的运行结果是( )。
* .********(此内容仅VIP会员可见)
* .***(此内容仅VIP会员可见)
* .*******(此内容仅VIP会员可见)
* .**(此内容仅VIP会员可见)
收藏
纠错
加入试题篮
有以下程序:
#include <stdio.h>
void fun(char *c,int d)
{
*c=*c+1;
d=d+1;
printf("%c,%c,",*c,d);
}
main()
{
char b='a',a='A';
fun(&b,a);
printf("%c,%c\n",b,a);
}
程序运行后的输出结果是。
* .*,*,*,*(此内容仅VIP会员可见)
* .*,*,*,*(此内容仅VIP会员可见)
* .*,*,*,*(此内容仅VIP会员可见)
* .*,*,*,*(此内容仅VIP会员可见)
收藏
纠错
加入试题篮
有以下程序
#include <stdio.h>
void fun(char *t,char *s)
{
while(*t!=0)t++;
while((*t++=*s++)!=0);
}
main()
{
char ss[10]="acc",aa[10]="bbxxyy";
fun(ss,aa);
printf("%s,%s\n",ss,aa);
}
程序的运行结果是( )。
* .*********,******(此内容仅VIP会员可见)
* .***,******(此内容仅VIP会员可见)
* .*******,******(此内容仅VIP会员可见)
* .******,******(此内容仅VIP会员可见)
收藏
纠错
加入试题篮
有以下程序
#include <stdio.h>
void swap(char *x,char *y)
{
char t;
t=*x;
*x=*y;
*y=t;
}
main()
{
char *s1,*s2;
char a[]="abc";
char b[]=" 123";
s1=a;
s2=b;
swap(s 1,s2);
printf("%s,%s\n",s1,s2);
}
程序执行后的输出结果是( )。
* .***,***(此内容仅VIP会员可见)
* .***,***(此内容仅VIP会员可见)
* .***,***(此内容仅VIP会员可见)
* .***,***(此内容仅VIP会员可见)
收藏
纠错
加入试题篮
有以下程序:
#include <stdio.h>
main()
{
intA=0,B=0,C=0;
C=(A-=A-5);
(A=B,B+=4);
printf("%d,%d,%d\n",A,B,C);
}
程序运行后输出的结果是( )。
* .*,*,*(此内容仅VIP会员可见)
* .*,*,*(此内容仅VIP会员可见)
* .*,*,*(此内容仅VIP会员可见)
* .*,*,*(此内容仅VIP会员可见)
收藏
纠错
加入试题篮
设有定义
int x=2;
以下表达式中,值不为6的是( )。
* .**=*+*(此内容仅VIP会员可见)
* .*++,***(此内容仅VIP会员可见)
* .**=(*+*)(此内容仅VIP会员可见)
* .***,*+=*(此内容仅VIP会员可见)
收藏
纠错
加入试题篮
有以下定义
int a;
long b;
double x,y;
则以下选项中正确的表达式是( )。
* .*%(***)(*-*)(此内容仅VIP会员可见)
* .*==*!=*(此内容仅VIP会员可见)
* .(***)%*(此内容仅VIP会员可见)
* .*=*+*=*(此内容仅VIP会员可见)
收藏
纠错
加入试题篮
表达式3.6-5/2+1.2+5%2的值是( )。
* .*.*(此内容仅VIP会员可见)
* .*.*(此内容仅VIP会员可见)
* .*.*(此内容仅VIP会员可见)
* .*.*(此内容仅VIP会员可见)
收藏
纠错
加入试题篮
以下能正确表述算式sin(2πr+30°)的C语言表达式是( )。
* .***(***.****+*.*****/***.*)(此内容仅VIP会员可见)
* .***(**π**+**)(此内容仅VIP会员可见)
* .***(***.****+**)(此内容仅VIP会员可见)
* .***(***.****+****.**/***.*)(此内容仅VIP会员可见)
收藏
纠错
加入试题篮
设有定义: int x=7 ,y= 12;,则以下表达式值为3的是( )。
* .(*%=*)-(*%=*)(此内容仅VIP会员可见)
* .*%=(*%=*)(此内容仅VIP会员可见)
* .*%=*-*%*(此内容仅VIP会员可见)
* .*%=(*-*%*)(此内容仅VIP会员可见)
收藏
纠错
加入试题篮
共18275记录
«上一页
1
...
218
219
220
221
222
223
224
225
...
914
下一页»
微信刷题
联系电话
手机
181-0729-8398
邮箱
254634089@qq.com
返回顶部