Function with no arguments and no return value (Void function without parameters / No communication)
Function with no arguments and no return value
(Void function without parameters / No communication)
#include<stdio.h>
void add();
void main()
{
add( );
}
void add()
{
int a, b, c;
printf(“Enter two integers\n”);
scanf(“%d%d”,&a,&b);
c=a+b;
printf(“Sum is =%d”,c);
}
Comments
Post a Comment