输出: 3.
#include<stdio.h> void main() {
int i,j,k,c[20],a[20]={1,4,7,17,23,0}; int b[20]={2,6,9,10,15,24,45,72,81,92,0}; i=j=k=0;
while((a[i]!=0)&&(b[j]!=0) {
if(a[i]<b[j]) { else {
c[k]=b[j]; j++;} c[k]=a[i]; i++;}
k++; } if(a[i]= =0)
while(b[j]!=0) c[k++]=b[j++]; if(b[j]= =0)
while(a[i]!=0) c[k++]=a[i++]; c[k]=0; k=0;
while(c[k]!=0) printf(“%d,”,c[k++]);
}
输出: 4.
#include<stdio.h> int len(int m)