C语言基础:指针使用演示代码
#include <stdio.h>
int main(void)
{
int counter = 10;
int *iptr; // Declare pointer value
iptr = // Assign the address
printf("Addres in iptr %x Value at *iptr %d\n", iptr, *iptr);
*iptr = 25; // Change the value in memory
printf("Value of counter %d\n", counter);
return 1;
}
