adplus-dvertising
frame-decoration

Question

What is the output of this program?
   #include <iostream>
   using namespace std;
   int main()
   {
        int arr[] = {4, 5, 6, 7};
        int *p = (arr + 1);
        cout << *arr + 9;
        return 0;
   }

a.

12

b.

5

c.

13

d.

error

Answer: (c).13

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the output of this program?