#include<stdio.h>;
void main(){
int x=10;
int *y=&x+1;
*y=15;
printf("\n Address of x is %u",&x);
printf("\n Value of y is %d",*y);
}
Run Code Online (Sandbox Code Playgroud)
在这段代码中为什么值*y不是15,在输出中x = 25908的值和y = 25912的值?我想知道为什么当我将x的下一个地址的值设为15时,15不会显示为输出?