actual and formal parameters
#include <stdio.h>
int add(int x,int y) // function // in this x & y are formal parameters
{
return x+y;
}
int main()
{
int r, a=2,b=3;
r=add(a,b);// calling the function //in this a & b are actual parameters
printf("%d",r);
return 0;
}
Comments
Post a Comment