Question from the C++ test

What is the value of p1 and q1 in the following code? ```c++ int i = 0; int *p = &i; int *const p1 = &i; int *const q1 = &*p; ```

Expert

How would the compiler interpret variables p1 and q1 in the following code?

int i = 1;
int &p1 = i;
int &q1 = p1;
Author: Abha AgrawaStatus: PublishedQuestion passed 457 times
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!