Saturday, November 9, 2024

POINTER

 

int main()

{

    int a[]={10,20,30,40};

    int *p,i;

    p=a;

    printf("%d ",*p++);

        printf("%d ",*p);

 

    for(i=0;i<4;i++)

      printf("%d ",a[i]);

    return 0;

}

No comments:

Post a Comment