执行下列语句后,数组s1中的内容为____。char s1[20]=”123\0abc”,s2[10]=”xyz”,s3[]=”456”;strcat(s1,strcpy(s2,s3));
查看答案
分析下列程序,写出程序运行结果。#includeusing namespace std;int main(void){char str[]="It is 4:30 pm.",*p=str;cout<='0'&&*q<='9')q++;cout<
分析下列程序,写出程序运行结果。#includeusing namespace std;int main(void){int a[15]={450,211,164,290,100,228,287,69,488,84,216,390,369,488,66};int b[5]={100,200,300,400,500},c[5]={0};for(int i=0;i<15;i++){int j=0;while(a[i]>=b[j]) j++;c[j]++;}for(i=0;i<5;i++)cout<<'<'<<100+i*100<<":\t"<
分析下列程序,写出程序运行结果。#include#define M 4#define N 5using namespace std;void fun(double p[][N],int n){int i,j;for(i=0;i
分析下列程序,写出程序运行结果。#includeusing namespace std;int main(void ){char season[4][20]={"Spring","Summer","Autumn","Winter"};char *p[]={season[0],season[1],season[2],season[3]};int i;for(i=0;i<4;i++)cout<