Code:
struct employee
{
char firstName[20];
char lastName[20];
float rate;
};
struct employee emp;
Here you define a struct employee and then declare a variable "emp" of this type, i.e. struct employee.
Code:
void get(struct emp, int* pi);
Here you declare the first parameter to be of type struct emp, but there is no such struct in your program.
Code:
get(struct emp, pi); //<--- error here (Expected expression before 'struct' I don't know what that means
Suppose you have a function which is declared as
Code:
void some_function(int n);
How would you call it (assume "x" is an int)?
Code:
some_function(int x);
// or
some_function(x);
Do you understand what your problem is?
Bye, Andreas