#include<stdio.h>
int main(){
int i=30;
int *ptr=&i;
printf("Value of i is %d\n",*ptr);
ptr++;
printf("Value of i is %d\n",*ptr);
return 0;
}
//OUTPUT:-
Value of i is 30
Value of i is 6618648
#include<stdio.h>
int main(){
int i=30;
int *ptr=&i;
printf("Value of i is %d\n",*ptr);
ptr++;
printf("Value of i is %d\n",*ptr);
return 0;
}
//OUTPUT:-
Value of i is 30
Value of i is 6618648