阅读下列程序,写出运行结果:
#include <iostream>
using namespace std;
int f(int [],int);
int main()
{
int a[] = { -1, 3, 5, -7, 9, -11 };
cout << f( a, 6 ) << endl;
}
int f( int a[], int size )
{
int i, t=1;
for( i=0; i<size; i ++ )
if( a[i]>0 ) *= a[i];
return t;
}

135