DESCRIPTION-:Program with no parameters and without returning any value contains no parameters in function call and also not return any value in the function definition block.For these type of program also we do not pass any parameter or argument in function declaration.
PROGRAM-:
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
void print();
print();
cout<<"no parameters and no return type";
print();
getch();
}
void print()
{
for(int i=1;i<=10;i++)
{
cout<<"*";
}
}
PROGRAM-:
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
void print();
print();
cout<<"no parameters and no return type";
print();
getch();
}
void print()
{
for(int i=1;i<=10;i++)
{
cout<<"*";
}
}
0 comments:
Post a Comment