Q35
What will be the output of the following C++ code? #include using namespace std; int main() int n = 5; void *p = &n; int *pi = static_cast (p); cout << *pi << endl; return 0;
A.
5
AnswerB.
6
C.
compile time error
D.
runtime error
Answer: Option A
Solution
Answer: Option A
No explanation is given for this question Let's Discuss on Board