Pages

Friday 18 March 2011

PROGRAM OF FUNCTION WITH NO PARAMETERS AND NO RETURN VALUES

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<<"*";
}
}

0 comments:

Post a Comment

 
Copyright (c) 2010 Concepts Of C++. Design by WPThemes Expert

Blogger Templates and RegistryBooster.