You are on page 1of 2

/*rollno: 13M212*/

Source code:
#include<stdio.h>
#include<conio.h>
main()
{
int a;
int *ptr;
clrscr();
ptr=&a;
printf("enter the value from user:");
scanf("%d",&a);
func(a);
}
func(int *ptr)
{
printf("Address:");
printf("%u",*ptr);
getch();
}



Output:

You might also like