1.

What will be the output of the this program?
#include 
using namespace std;
int main ()
{
int arr[] = {10, 12, 40, 16, 70, 15, 30};
int k, res = 0;
for (k = 0; k < 5; k++) {
res += arr[k];
}
cout << res;
return 0;
}

A. 70
B. 40
C. 30
D. 184
E. 148
Answer» F.


Discussion

No Comment Found

Related MCQs