在下面程序运行后,输出结果为 ______。include<iostream.h>void count(int x[],int n,int &y

在下面程序运行后,输出结果为 ______。 include<iostream.h> void count(int x[],int n,int &y){ int k; y=0; for(k=0:k<n;k++) if(x[k]<0) y++; } void main(){ int b[]={2,1,-8,-3,7,2,4,6,0,-13}; int x; count(b,10,x); cout<<“x”<<x<<end1; } A.x=3 B.x=5 C.出错 D.x=0

时间:2023-10-04 09:53:36

相似题目