in the first function print, i just copy the structure, in second on i try to pass the structures adres,Code:typedef struct {
int nr;
char name[21];
char afd;
}
EMPLOYEE;
void print (EMPLOYEE);
void get(EMPLOYEE*);
int main (void)
{
EMPLOYEE a1= {1111,"Bob The Builder",'B'},a2={0};
get(&a2);
print(a1);
print(a2);
}
void print(EMPLOYEE a){ // copy and paste
printf("%d %s %c",a.nr,a.name,a.afd);
}
void get(EMPLOYEE *a){ //pointer naar structure
printf("arbeider(stamnr,name,afd)");
scanf("%d %s %c",a.nr,a.name,a.afd);
}
then what are the arguments of scanf;