Question PRG-CPP-0028
EasyWhat is the output of this program?
#include <iostream>
using namespace std;
int main() {
int a[5] = {1, 2};
cout << a[4];
return 0;
}
- A.
1
- B.
Garbage value
- C.
2
- D.
0
Sign up free to see the answer and a step-by-step explanation.