int x = 10;
int *ptr1 = &x;
int *ptr2 = ptr1;
int x = 10;
int *ptr = &x;
int *ptr = (int*)malloc(sizeof(int));
*ptr = 10;
int arr[5] = {1, 2, 3, 4, 5};
int *ptr = arr;
辰迅云「云服务器」,即开即用、新一代英特尔至强铂金CPU、三副本存储NVMe SSD云盘,价格低至29元/月。点击查看>>
推荐阅读: c语言memory的用法是什么