153. Call by address function.
#include<stdio.h>
void
value(int *);
int
num;
void
main()
{
printf("Enter a value : ");
scanf("%d",&num);
printf(" Before : %d\n",num);
value(&num);
printf(" After : %d\n",num);
}
void
value(int *p)
{
*p=10;
}
Comments
Post a Comment