#include<iostream.h>
#include<conio.h>
struct book
{
char bname[30];
char aname[30];
int pyear;
};
int main()
{
clrscr();
void display(struct book obj1);
static struct book obj =
{
"Programming in C++",
"G.S.Baluja",
1999
};
display(obj);
getch();
return 0;
}
void display(struct book obj1)
{
cout<<"The initialized information is :"<<endl;
cout<<"Book Name : "<<obj1.bname;
cout<<endl<<"Author Name : "<<obj1.aname;
cout<<endl<<"Printed Year : "<<obj1.pyear;
}