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

请读程序: # include # include void fun(char * w int m) { char s * p


请读程序: # include<stdio.h> # include<string.h> void fun(char * w,int m) { char s,* p1,* p2; p1=w;p2=w+m-1; while(p1<p2) { s=* p1++;*pl=* p2 - -;* p2=s;} } main() { char a[]="ABCDEFG"; fun(a,strlen(a)); puts(a); } 上面程序的输出结果是 ()

A.GEFDCBA

B.AGADAGA

C.AGAAGAG

D.GAGGAGA

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

参考答案
您可能感兴趣的试题
  • 请读程序:include<stdio.h>main(){ int a;float b,c; scanf("%2d%3t%4f",&a,&b,&c); printf(" a

  • 阅读下列程序,则在执行后,程序的运行结果为 include "stdio.h" include "string.h" main() {ch

  • 下列程序的输出结果是 #include intmin(inta,intB) { if(a elsereturnB; return0; } vo

  • 阅读下列程序,当运行函数时,输入asdafaaz67,则输出为 #include #include #include intf

  • 下列程序中划线处正确的语句是()。#include using namespace std;class Base{public:vo

  • 有以下程序 #include #include void fun(); } 程序运行后的输出结果是