Q. What is the output of the following C++ code?
Code:
#include <stdio.h>
#include <iostream>
using namespace std;
int main()
{
int arr[] = {100, 200, 300};
cout << -2[arr];
return 0;
}
β
Correct Answer: (A)
Runtime error