[FUNCTION] takes something return something
-------------------
FUNCTION
-------------------
[ Takes something Return Something ]
. when a function takes some data to done it's work and also return data it is called as Takes something Return Something
^^^^^^^^^^^^^^^
RUN SCREEN
$$$$$$$$$$$$$$
$ SOURCE CODE $
#############
#include<stdio.h>
#include<conio.h>
//[ UB CODES ] //
int add(int,int);
int main()
{
int x,y,s;
clrscr();
printf("enter two number= ");
scanf("%d %d",&x,&y);
s=add(x,y);
printf("sum is=[ %d ]",s);
getch();
}
int add(int a,int b)
{
int c;
c=a+b;
return(c);
}
#########################
ALL RIGHTS GOES TO [ UB CODE ]
#########################
<---------------------------------------------------->