Pages
HOME
DEVELOPERS
PROJECTS
PROGRAMS
TUTORIAL
DATA STRUCTURE & ALGORITHM
HELP
Program to pass entire structure from an array
#include<iostream.h>
#include<conio.h>
struct student
{
char name[10];
int age;
};
void print(student s)
{
cout<<"name is\t"<<s.name<<"\n\n"<<"age is"<<"\t\t "<<s.age;
}
void main()
{
clrscr();
student s1={"akash",18};
print(s1);
getch();
}
Newer Post
Older Post
Home