题目内容
写出以下程序运行结果。#include using namespace std;#include int main(){ char s[20]="boygirl", *t, max, *w; t=s; max=*(t++); while (*t!='\0') { if (max<*t) { max=*t; w=t; } t++; } t=w; while (t>s) { *t=*(t-1); t--; } *t=max; puts(t); return 0;}
查看答案
搜索结果不匹配?点我反馈
更多问题