Pointers

Basic declaration of a pointer

#include <stdio.h>
int main()
{
    int n=20;
    int *z=&n;
    int *k=n;
    printf(” z stores addres of n %d\n”,z);
    printf(“*z stores value of n %d\n”,*z);
    printf(“&n stores address%d\n”,&n);
}

Leave a Comment

Your email address will not be published. Required fields are marked *