#include<stdio.h>
int main() {
int x;
int *ptr;
ptr=&x;
*ptr= 0; //x=0
printf(" x=%d\n",x);//0
printf("*ptr=%d\n",*ptr);//0
*ptr +=5;//x=5
printf("x=%d\n",x);//5
printf("*ptr=%d\n",*ptr);//5
(*ptr)++;
printf("x=%d\n",x);//6
printf("*ptr=%d\n",*ptr);//6
return 0;
}
To embed this program on your website, copy the following code and paste it into your website's HTML: