Q45
What will be the output of the following C++ code? #include #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.
15
B.
18
C.
garbage value
D.
compile time error
AnswerAnswer: Option D
Solution
Answer: Option D
No explanation is given for this question Let's Discuss on Board