下面程序的输出结果是______。 main() { int x=11,*p=x; *p=23; printf("%d",x); }
下面程序的输出结果是______。
main()
{
int x=11,*p=x;
*p=23;
printf("%d",x);
}
下面程序的输出结果是______。
main()
{
int x=11,*p=x;
*p=23;
printf("%d",x);
}
下面程序执行后的输出结果是: #include <iostream> using namespace std; #define MA(x) x*x-1 int main() { int a=1,b=2; cout< <ma(1+a+b); return 0;> A、6
B、8
C、10
D、12
下列程序执行后的输出结果是______。#define MA(x) x*(x-1)main(){ int a=1,b=2; printf{"%d \n",MA(1+a+b));}
A.6
B.8
C.10
D.12
下列程序执行后的输出结果是() #define MA(x) x*(x-1) main() {int a=1,b=2; printf("%d\n",MA(1+a+B) ); }
A.5
B.6
C.7
D.8
A.20,10
B.10,20
C.10,10
D.20,20
A.6
B.8
C.10
D.12
E.B
F.1
以下程序的输出结果是()。 include<stdio.h> fun() {static int a=0; a+=3;printf("%d",A); } main() {int cc; for(cc=1;cc<5;cc++)fun(); printf("\n"); }
执行如下程序后的输出结果是【 】。
include <iostream>
include <fstream>
using namespace std;
int main ()
{
char s[25];
ofstream fl("data.txt");
f1<<"C++ Programming";
f1.close ();
ifstream f2 ("data.txt");
以下程序的输出结果是【 】。 include <stdio.h> define MAX(x,y)(x),(y)?(x):(y) main() { int a=5,b=2,c=3,d=3,t; t=MAX(a+b,c+d)*10; printf("%d\n",t); }
已知字符A的ASCII代码值为65,以下程序运行时若从键盘输入:B33<回车>,则输出结果是【 】。
include
main()
{ char a, b;
a=getchar(); scanf("% d", &b);
a=a-'A'+'0'; b=b*2;
printf("% c % c\n", a, b);
}
以下程序的输出结果是 #include<stdio.h> int a[3][3]={1,2,3,4,5,6,7,8,9,},*p; main() { p=(int*)malloc(sizeof(int)); f(p,a); printf("%d\n",*p); free(p);} f(int *s, int p[][3]) { *s=p[1][1];}
A.1
B.4
C.7
D.5
以下程序运行后,若输入20后按“回车键”,则程序的输出结果是【1】. #include <stdio.h> int main() { int w; scanf("%d",&w); if(w>=20) printf("%d",w); else printf("%d",w-5); if(w<=15) printf("%d",w); else printf("%d",w-5); if(w>=15) printf("%d",w-10); else printf("%d",w+10); return 0; }
为了保护您的账号安全,请在“简答题”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!