Monday, 23 October 2023

C PRO 32 : WAP to display address of variable using pointers

 

// Program
#include<stdio.h>
int main()
{
  int a,*b;
  printf("Enter any integer value\n");
  scanf("%d",&a);
  b=&a;
  printf("\nValue of Entered Value=%d",*b);
  printf("\nAddress of the variable=%u",b);
  return 0;
}

No comments:

Post a Comment

Note: only a member of this blog may post a comment.