Write a c program to create Initialize & Access pointer Variable
include
include
void main()
{
int n1,n2,ptr;
printf("\nEnter any Number:");
scanf("%d",&n1);
ptr=&n1;
printf("\n VALUE IN ADRESS=%u is %d",ptr,ptr);
printf("\nEnter any Number:");
scanf("%d",&n2);
ptr=&n2;
printf("\n VALUE IN ADRESS=%u is %d",ptr,*ptr);
}
Write a c program to create Initialize & Access pointer Variable
include
include
void main() { int n1,n2,ptr; printf("\nEnter any Number:"); scanf("%d",&n1); ptr=&n1; printf("\n VALUE IN ADRESS=%u is %d",ptr,ptr); printf("\nEnter any Number:"); scanf("%d",&n2); ptr=&n2; printf("\n VALUE IN ADRESS=%u is %d",ptr,*ptr); }