Professional Documents
Culture Documents
PGM Using Function
PGM Using Function
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: