写出下面程序执行后的运行结果。 #include using namespace std;int fun____{int j;*s = a; j = n;while ____ j--;return j;}void main____{char c[6]; int i;for ____*____='A' + i + 1;cout << fun____;}
查看答案
写出下面程序执行后的运行结果。 #include #include using namespace std;char* ss____{char*p, t;p = s + 1; t = *s;while ____ { *____ = *p; p++; }*____ = t;return s;}void main____{char *p, str[10]="abcdefgh";p = ss____;cout << p;}
下面程序运行时从键盘上输入“6”,写出程序的运行结果。 #include using namespace std;void sub____{while ____!='\0');while ____
写出下列程序的输出结果。 #include using namespace std;int n[][3] ={10, 20, 30, 40, 50, 60};int main____{int____[3];p = n;cout << p[0][0] << "," << *____ <<"," << ____[2] << endl;return 0;}
写出下面程序执行后的运行结果。 #include #include using namespace std;void f____{char *t; int i,j;for____for ____if ____ > 0) { t = p[i]; p[i] = p[j]; p[j] = t; }}void main____{char *p[5] = { "abc", "aabdfg", "abbd", "dcdbe", "cd" };f____;cout << strlen____;}