Program For Call By Value In C Programming With Example - 99webcode

Program For Call By Value In C Programming With Example - 99webcode


Program For Call By Value In C Programming With Example -



#include<stdio.h>

int sum(int,int);//function declaration//parameter

int main()

int c;

int x=10;

int y=20;

sum(x,y); 

c=sum(x,y);

printf("%d",c);

return 0;

}

int sum (int a, int b)

{

int result;

result=a+b;

        return result;

}

output:

30

Post a Comment (0)
Previous Post Next Post