T

Tina Singh • 10.85K Points
Tutor II

Q. Output of this program will be

Code:
#include
using namespace std;
int main()
{
int a = 5, b = 10, c = 15;
int arr[3] = {&a, &b, &c};
cout << *arr[*arr[1] – 8];
return 0;
}
  • (A) 18
  • (B) 15
  • (C) garbage value
  • (D) compile time error
  • Correct Answer - Option(D)
  • Views: 202
  • Filed under category C++

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.


Question analytics