当前位置: 答题翼 > 问答 > 计算机类考试 > 正文
目录: 标题| 题干| 答案| 搜索| 相关
问题

请选出以下程序的输出结果()。#includesub(int *s int y){static int t=3; y=s[t];t--;}


请选出以下程序的输出结果()。 #include <stdio.h> sub(int *s,int y) { static int t=3; y=s[t];t--; } main() { int a[]={1,2,3,4},i,x=0; for(i=0;i<4;i++) { sub(a,x);printf("%d",x); } printf("\n"); }

A.1234

B.4321

C.0

D.4444

请帮忙给出正确答案和分析,谢谢!

参考答案
您可能感兴趣的试题
  • 请选出以下程序的输出结果 #include<stdio.h> main() {int a[]={1,2,3,4},i; int x=0; for

  • 请选出以下程序的输出结果 #include<stdio.h> main() {int a[]={1,2,3,4},i; int x=0; for

  • 请选出以下程序的输出结果 #include<stdio.h> main() {int a[]={1 2 3 4} i; int x=0; for

  • 以下程序是求矩阵a b的和 结果存入矩阵c中 并按矩阵形式输出 请填空。 include

  • 请选出以下语句的输出结果printf(\%d\n strlen(\ \\65\xff\n));A.5 B.14C.8 D.输出项不合法

  • 请选出以下程序段的输出结果______。#include#define MIN(x y)(x)