Code Box
------------------------------------
/*Program for function without return type and without arguments*/
#include<stdio.h>
#include<conio.h>
void main()
{
void sum(); //Function Declaration
printf("Sum of two number:");
sum(); //Function call
getch();
}
void sum() //Function Definition
{
int a,b,c;
a=5;
b=6;
c=a+b;
printf("%d",c);
}
No comments:
Post a Comment