小杨在调试一个“等级提升”系统,代码逻辑如下,执行后*p的值是多少?
C复制1int lv = 5, next_lv = 6; 2int *p = &lv; 3*p = *p + 1; 4p = &next_lv;
1int lv = 5, next_lv = 6; 2int *p = &lv; 3*p = *p + 1; 4p = &next_lv;
5
6
lv 的地址
next_lv 的地址