P
Priya Mishra
What is wrong in the below code,
I get the 2 error when i compile the prog... what is mean ??
error C2275: structure: illegal use of this type as an expression
error C2065: str: undeclared identifier
typedef struct
{
char file;
int a;
int b;
int c;
} structure;
int func(structure *Ob,
char *fileName);
int main(int argc, char **argv )
{
int error;
structure *str;
error = func(&str, "abc.txt");
return error;
}
Thanks
Priya
I get the 2 error when i compile the prog... what is mean ??
error C2275: structure: illegal use of this type as an expression
error C2065: str: undeclared identifier
typedef struct
{
char file;
int a;
int b;
int c;
} structure;
int func(structure *Ob,
char *fileName);
int main(int argc, char **argv )
{
int error;
structure *str;
error = func(&str, "abc.txt");
return error;
}
Thanks
Priya