Program to Access Address of Variable using Pointer

January 12, 2025 No Comments » Hits : 58





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

Incoming search terms: