Call by Value in C

Call by value is a method of passing arguments to a function copies the actual value of an argument to new variables

Source code :

#include <stdio.h>
int myFunc(int,int);


int main()
{
	myFunc(75,41);
	return 0;
}

int myFunc(int a,int b)
{
	printf("The sum is %d\n", a+b);
	return 0;
}

Output :

The sum is 116

Output :


                

Comments :