下列程序的输出结果为()。#includevoid main(){int a[] = {1, 2, 3, 4, 5}, i;for(i=1; i<5; i++){printf("%d", a[i]-a[i-1]);}}
A.1234
B.2345
C.11111
D.1111
A.1234
B.2345
C.11111
D.1111
有以下程序,程序中库函数islower(ch)用以判断ch中的字*是否为小写字* include<stdio.h> include<ctype.h> yoidfun(char*p) {inti=0; while(p[i]) {iffp[i]=&&islower(p[i-1]))p[i-1]=p[i-1]=p[i-1]-a+A; i++: } } main() {chars1[100]=abcdEFG!; fun(s1);printf(%s\n,s1); } 程序运行后的输出结果是
A.abcdEFg!
B.abcdEFG!
C.abcdEFg!
D.abcDEFG!
下列程序的输出结果为______ Sub Prin() Dim B As String A=1 B=A & Space(4)& A Print A Print Trim(B) End Sub
下列程序段的输出结果为__________。 int a=2; switch (a) { case2: System.out.print("Value is2."); case3: System.out.pritln("Value is3."); break; default: System.out.println("end"); break: }
下列程序段的输出结果为【 】。 public class Test { void printValue(int m) { do { Systern.out,println("The value is "+m); } while(-m>10); } public static void main(String arg[]){ int i=10; Test t=new Test(); t.print Value(i); } }
写出下列程序段的输出结果(栈的元素类型SElemType为char)。
void main()
{
Stack S;
char x,y;
lnitStack(S);
x='c';
y='k';
Push(S,x);
Push(S,'a');
Push(S,y);
Pop(S,x);
Push(S,'t');
Push(S,x);
Pop(S,x);
Push(S,'s');
While(!StackEmpty(S))
{
Pop(S,y);
printf(y);
}
printf(x);
}
有下列程序: include<stdio.h> main() {char c; while((c=getchar())!=,)putchar(C) ; } 程序运行时,如果从键盘输入:A,B,<CR>,则输出结果为______。