A

Admin • 833K Points
Coach

Q. What is the output of the following C++ code?

Code:
#include<iostream>
using namespace std;
int arr[50];
int main()
{
cout << arr[49] << endl;
}
  • (A) Random value
  • (B) 49
  • (C) 0
  • (D) Error
  • Correct Answer - Option(C)
  • Views: 24
  • Filed under category C++
  • Hashtags:

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.