下列程序的输出结果为()。main(){int a=4,b=3,c=1,d;d=a&&b&&b>c-! 0;cout<<d;}A
下列程序的输出结果为()。 main() { int a=4,b=3,c=1,d; d=a&&b&&b>c-! 0; cout<<d; }
A.0
B.3
C.1
D.4
下列程序的输出结果为()。 main() { int a=4,b=3,c=1,d; d=a&&b&&b>c-! 0; cout<<d; }
A.0
B.3
C.1
D.4
下列程序的输出结果为()。 #include (iostream) using namespace std; void main() char,a[ ] = { "hello" ," the" ," world" }; char * * pa = a: pa + +; cout << * pa << ENDL; }
A.hello
B.the
C.world
D.hellotheworld
下列程序的输出结果为 main() { union u {char *name; int age; int income;}s s.name="WANGLIONG"; s.age=28; s.income=1000; printf("%d\n",s.age); }
A.28
B.1000
C.0
D.不确定
A.hello
B.the
C.world
D.hellotheworld
下列程序的输出结果为 main() { union u { char*name; int age; int income;}s s.name="WANGLIONG"; s.age=28; s.income=1000; printf("%d\n",s.age); }
A.28
B.1000
C.0
D.不确定
下列程序的输出结果为
#include
void main()
{
char,a[]={”hello",”the",”world”};
char**pa=a:
pa++;
cout<<*pa<
}
A.hello
B.the
C.world
D.hellotheworld
执行下列程序段之后,输出的结果为______。 public class ex43 { public static void main(String[] args) { short a=127; short b=4; a>>>=--b; System.out.println(a); } }
A.10
B.15
C.30
D.128
A.hello
B.the
C.world
D.hellotheworld
下列程序段的输出结果为()。#include<stdio. h>main(){ static char a[]="language"; char*p; p=a; for(p=a;p<a+8;p+=2) putchar(*p);}
A.language
B.lnug
C.有语法错误
D.lang
A.1234
B.2345
C.11111
D.1111
下列程序运行时,若输入labced12df<回车> 输出结果为【10】
#include <stdio.h>
main()
{char a =0,ch;
while((ch=getchar())!=’\n’)
{if(a&2!=0&&(ch>’a’&&ch<=’z’)) ch=ch-‘a’+’A’;
a++;putchar(ch);
}
printf(“\n”);
}