152. Call by value 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 num)
{
num=10;
}
Comments
Post a Comment