home
Learn
screen_rotation
#include <stdio.h> #include <conio.h> void main(){ int *ptr ; int v = 100 ; clrscr(); ptr = &v ; printf ("\nAddress of v = %p",&v) ; printf ("\nAddress of v = %p",ptr) ; printf ("\nAddress of ptr = %p",&ptr) ; printf ("\nValue of ptr = %p",ptr) ; printf ("\nValue of v = %d",v) ; printf ("\nValue of v = %d",*(&v)) ; printf ("\nValue of v = %d",*ptr) ; getch(); }
Program Output
Address of v = 0019FF44 Address of v = 0019FF44 Address of ptr = 0019FF48 Value of ptr = 0019FF44 Value of v = 100 Value of v = 100 Value of v = 100