网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
有下列程序: #include<stdi0.h> voidmain( ) {chara=4; printf("%d\n",a=a<<1); } 程序的运行结果是( )。
A.40
B.16
C.8
D.4
参考答案
更多 “ 有下列程序: #includestdi0.h voidmain( ) {chara=4; printf("%d\n",a=a1); } 程序的运行结果是( )。A.40B.16C.8D.4 ” 相关考题
考题
下列程序执行的输出结果是()。 include main() {char a[2][4];strcpy(a,"are");strcpy(
下列程序执行的输出结果是( )。 #include<stdio.h> main() { char a[2][4]; strcpy(a,"are");strcpy(a [1],"you"); a[0][3]=''; printf("%s\n",a); }A.areyouB.youC.areD.
考题
有以下程序 include main() { char a=4; printf("%d/n,a=a
有以下程序 #include <stdio.h> main() { char a=4; printf("%d/n,a=a<<1); } 程序的运行结果是______。A.40B.16C.8D.4
考题
下列程序执行的输出结果是( )。 include main() {char a[2][4];strcpy(a,"are");strcpy
下列程序执行的输出结果是( )。 #include<stdio.h> main() { char a[2][4]; strcpy(a,"are");strcpy(a[1],"you"); a[0][3]=''; printf("%s\n",a); }A.areyouB.youC.areD.
考题
有下列程序: includestdi0.hvoidfun(char*s){while(*s){if(*s%2==(1)printf(%Cstdi0.hvoidfun(char*s){while(*s){if(*s%2==(1)printf(%C,*s);s+十:}}voidmain( ){chara[]={good);fun(a);printf(n);}注意:字母a的ASCIl码值为97,程序运行后的输出结果是( )。A.dB.goC.godD.good
考题
下列程序执行的输出结果是()。 inClude main() {char a[2][4]; strcpy(a,"are");strcpy
下列程序执行的输出结果是( )。#inClude<stdio.h>main(){ char a[2][4];strcpy(a,"are");strcpy(a[1],"you");a[0][3]='';printf("%s\n",A) ;}A.areyouB.youC.areD.
考题
有下列程序: #includestdi0.h voidfun(char*s) {while(*s) {if(*s%2==(1)printf("%C",*s); s+十: } } voidmain( ) {chara[]={"good"); fun(a);printf("n"); } 注意:字母a的ASCIl码值为97,程序运行后的输出结果是( )。A.dB.goC.godD.good
考题
以下的哪个C语言程序是有语法错误的?A.void main () { }#B.#include <stdio.h> void main () { printf (“Hello, the world! n”); }#C.#include <stdio.h> int main () { printf (“Hello, the world! n”); return 1; }#D.void main () { printf (“ ”); }
热门标签
最新试卷