质量为本、客户为根、勇于拼搏、务实创新
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