pointer : Introduction

 #include <stdio.h>


int main()

    int a = 12;

    int *P;

     int p = &a;

    printf(" Real value of a= %d\n" , a);

    printf(" memory location of a= %u\n" , &a);

    printf(" value of memory address of a= %u\n" , *(&a));

    printf(" memory  location of p= %u\n" , &p);

    printf(" value of memory address  of p= %u\n" , *(&a));

   // printf(" value of memory address  of p= %u\n" , *p);

    return 0;

}

Comments

Popular posts from this blog

Factors : using C

Cross shaped pattern

Factorial ! calculation