#include<stdio.h>
int main()
{
    int a[4]={5,4,7,9};
    int *pt;
    pt=&a;
    printf("Address of 1st element of ARRAY a = %d\n",pt);
    printf("Value of 1st element of ARRAY a =%d\n",*pt);        
    printf("Value of pt[0],pt[1],pt[2],pt[3] = %d %d %d %d\n",pt[0],pt[1],pt[2],pt[3]);  
   // printf("*(++pt) = %d\n",*(++pt));            
    ++*pt;                                     
    printf("(++*pt) Increment of 1st element value of Array = %d %d %d %d\n",pt[0],pt[1],pt[2],pt[3]);
    ++pt;
    printf("%d\n",pt[0]);       /// 

    printf("%d %d\n",*(pt+1), pt[1]);  


    /// ARRAY VALUE DISTRIBUTION
    ///  pt[0]   =   *pt
    ///  pt[1]   =   *(pt+1)
    ///  pt[2]   =   *(pt+2)
    ///  pt[3]   =   *(pt+3)



    return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: