#include<iostream.h> #include<conio.h> #include<stdio.h> //------------------------------ Student ------------------------------// struct student { char name[10]; char section; int rollno; int semester; int age; }; void display(student); main( ) { clrscr(); student genius={\"M.Tahir\",\'A\',9,3,20}; cout<<\"\\n The Bio-Data of the student is :\\n\"<<endl; display(genius); getch(); return 0; } //------------------------- display(student) --------------------------// void display(student e) { cout<<\"\\t Name : \"<<e.name<<endl; cout<<\"\\t Roll No : \"<<e.rollno<<endl; cout<<\"\\t Section : \"<<e.section<<endl; cout<<\"\\t Semester : \"<<e.semester<<endl; cout<<\"\\t Age : \"<<e.age<<endl; }