Home » C++ Programming » Arrays » Question
  1. What is the output of this program?
    #include 
    using namespace std;
    int main()
    {
    int arr[] = {15, 25, 50};
    cout << -2[arr];
    return 0;
    }
    1. 15
    2. 25
    3. 50
    4. -2
    5. -50
Correct Option: E

It’s just printing the negative value of the concern element.



Your comments will be displayed only after manual approval.