About us

C Program to find the addition of two numbers using call by value

C Program to find the addition of two numbers using call by value 

c-program-find-addition-two-numbers-using-call-by-value


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

void main()
{
 int a,b;
 clrscr();
 printf("Enter any two numbesr for Addition\n");
 scanf("%d %d",&a,&b);
 printf("The Sum is %d",sum(a,b));
 getch();
}

int sum(int x,int y)
{
 return(x+y);
}

OUTPUT

Enter any two numbesr for Addition
12 13
The Sum is 25

------------------------------------------------------------------------------------------------------------


You can also visit:-