Call by value:
-Here call by value refers as we call the function and pass the variable value instead of passing refrence of variable.
program-
#include< stdio.h>
int func(int a, int b)
{
int t;
t=a;
a=b;
b=t;
}
int main() {
int i,j;
printf("Enter two numbers\n");
scanf("%d%d",&i,&j);
printf("Before function calling\n");
printf("%d %d",i,j);
func(i,j);
printf("After function calling");
printf("%d %d",i,j);
}
Enter two number
3 4
Before function calling
3 4
After function calling
3 4