Parameters in calling function are called actual parameters or Arguments
Parameters in Called functions are called formal parameters
#include<stdio.h>
int sum(int,int);
void main()
{
int a,b,result;
printf("Enter 2 values:");
scanf("%d%d",&a,&b);
result=sum(a,b); //Parameters given here are actual parameters(Arguments)
printf("Sum of %d and %d is %d",a,b,result);
}
int sum(int a,int b) //Parameters given here are formal parameters
{
int c;
c=a+b;
return(c);
}
Post a Comment
If you have any doubts, Please let me know
Thanks!