Q36
What will be the output of the following C++ code? #include #include #include using namespace std; int main(int argc, char const *argv[]) int a = 5; int &p = a; cout<<p; return 0;
A.
5
AnswerB.
Run-time error
C.
Segmentation fault
D.
Compile-time error
Answer: Option A
Solution
Answer: Option A
No explanation is given for this question Let's Discuss on Board