Q138
What will be the output of the following C++ code? #include using namespace std; int main () int a; int * ptr_b; int ** ptr_c; a = 1; ptr_b = &a; ptr_c = &ptr_b; cout << a << " "; cout << *ptr_b << " "; cout << *ptr_c << " "; cout << **ptr_c << " "; return 0;
A.
1
1
0xbffc9924
1
Answer1
0xbffc9924
1
B.
1
1
1
0xbffc9924
1
1
0xbffc9924
C.
1
0xbffc9924
1
1
0xbffc9924
1
1
D.
0xbffc9924
Answer: Option A
Solution
Answer: Option A
No explanation is given for this question Let's Discuss on Board