Computer Science, asked by abhi0077715, 7 months ago

5. Predict the output int *p, a=5;
p=&a; cout<<*p+a;​

Answers

Answered by waqarsd
5

Answer:

10

Explanation:

int *p, a=5;

p=&a; =》 *p=a

cout<<*p+a; =》*p+a =2*a

HOPE IT HELPS

Similar questions