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);
}