Pointer Program : Increment Integer Pointer
Live Example 1 : Increment Integer Pointer
#include<stdio.h> int main(){ int *ptr=(int *)1000; ptr=ptr+1; printf("New Value of ptr : %u",ptr); return 0; }
Output :
New Value of ptr : 1002
Live Example 1 : Increment Integer Pointer
#include<stdio.h> int main(){ int *ptr=(int *)1000; ptr=ptr+1; printf("New Value of ptr : %u",ptr); return 0; }
Output :
New Value of ptr : 1002