c语言指针赋值的有甚么方法
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;
TOP