[Function] Takes something return nothing
-------------------
FUNCTION
-------------------
[ Takes something return nothing ]
. when a function takes some data but don't return . it is called as takes something return nothing
Run screen
*******************
SOURCE CODE
*******************
#include<stdio.h>
#include<conio.h>
// takes something return nothing //
//code by UB //
void add(int,int);
void main()
{
int x,y;
clrscr();
printf("enter two number= ");
scanf("%d %d",&x,&y);
add(x,y); //actual argument [ call by value ] //
getch();
}
void add(int a,int b) // formal argument //
{
int c;
c=a+b;
printf("sum is [%d]",c);
}
#########################
ALL RIGHTS GOES TO [UB CODES]
#########################
<--------------------------------------------------->