T

Tina Singh • 10.85K Points
Tutor II

Q. Output of the this program will be _____

Code:
#include
using namespace std;
int main ()
{
int array[] = {0, 2, 4, 6, 7, 5, 3};
int n, result = 0;
for (n = 0 ;n < 8 ;n++) {
result += array[n];
}
cout << result;
return 0;
}
  • (A) 25
  • (B) 26
  • (C) 27
  • (D) None
  • Correct Answer - Option(C)
  • Views: 140
  • Filed under category C++

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics