Hello everyone, I was wondering if there is a typo in the solutions for the code below:
int x = 0;
int *p_int = &x;
int **p_p_int = & p_int;
*p_int = 12;
**p_p_int = 25;
p_int = 12;
*p_p_int = 3;
p_p_int = 27;
Then it asks for x , p_int and p_p_int values.
why does x = 25 in the solution? doesn't *p_int only reference it, so one can only change this x-value by reference or manually change by assigning x a value directly? also what does *p_p_int point to ?