Program :
#include<stdio.h> void main( ) { int i = 3 ; printf("\nAddress of i = %u", &i ) ; printf("\nValue of i = %d", i ) ; printf("\nValue of i = %d", *( &i ) ) ; }
Output:
Address of i = 65524 Value of i = 3 Value of i = 3
Program :
#include<stdio.h> void main( ) { int i = 3 ; printf("\nAddress of i = %u", &i ) ; printf("\nValue of i = %d", i ) ; printf("\nValue of i = %d", *( &i ) ) ; }
Output:
Address of i = 65524 Value of i = 3 Value of i = 3