write a program to illustrate passing structure


Write a Program to illustrate passing structure to function?

# include
struct customer
{
int id;
char name[15];
};
void func_struct(struct customer);

main()
{
struct customer cus1={101,"George"};
func_struct(cus1);
}

void func_struct(struct customer temp)
{
printf("%d",temp.id);
printf("%s",temp.name);
}

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: write a program to illustrate passing structure
Reference No:- TGS0305123

Expected delivery within 24 Hours

D

Dhanajit

10/15/2016 11:14:04 AM

Write a c++ program to illustrate thebpassing of a structure employee to a function by using passed by entire structure (refrence).