Tuesday, August 20, 2019

How to sum in function.sending And Receving values between functions..how to pass argument in function.

How to sum in function.sending And Receving values between functions:

how to sum in function.sending And Receving values between functions.


#include<stdio.h>
#include<conio.h>
int sum(int x,int y,int z); //argument
void main()
{
int a,b,c,sum1;
clrscr();
printf("Enter Any Three Numbers:- ");
scanf("%d%d%d",&a,&b,&c);
sum1=sum(a,b,c);
printf("the sum is:- %d",sum1);
getch();
}
int sum(int x,int y,int z)
{
int total;
total=x+y+z;
return(total);
}

Output:



EmoticonEmoticon

:)
:(
hihi
:-)
:D
=D
:-d
;(
;-(
@-)
:o
:>)
(o)
:p
:-?
(p)
:-s
8-)
:-t
:-b
b-(
(y)
x-)
(h)