Program for Pointer expression

Pointer Expression



/*
    Pointer Expression

  */



     #include<stdio.h>
     #include<conio.h>

    void main ()

    {
     int i=9;
     int *j;
     j=&i;
     clrscr();
     printf("\n\nAddress of i= %d",&i);
     printf("\n\nAddress of i= %d",j);
     printf("\n\nAddress of j= %d",&j);
     printf("\n\nThe value of j= %d",j);
     printf("\n The value i= %d",i);
     printf("\nThe Value of i= %d",*(&i));
     printf("\n The Value of i=%d", *j);

     printf("\n\n ****** Enter Any Key To Exit ******");
     getch();



    }
    
    
      

Output

pointer-expression 




Facebook Likes

Youtube