Brijmohan lal Sahu - Facebook
ads
ads

Friday, October 31, 2014

Program for function without return type and without arguments



-------------------------------------------------
/*Program for  function without return type and without arguments*/
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
void sum(); //Function Declaration
cout<<"Sum of two number:";
sum(); //Function call
getch();
}
void  sum() //Function Definition
{
int a,b,c;
a=5;
b=6;
c=a+b;
cout<<c;
}


No comments:

Post a Comment