No Return But Arguments in function .
where arguments are pass in function
syntax:
void name(int a, char b , float c):
example:
#include<stdio.h>
void sum(int,int);
void main()
{
int a,b,c;
printf("Enter two number :");
scanf("%d%d",&a,&b);
c=a+b;
sum(a,b);
}
void sum (int a,int b)
{
printf("sum :%d",a+b);
}
0 Comments