I want to have my structure in the main() function scope.
When I do that and use typedef I get an error: storage size of ... isn't known
typedef struct client client;
int main()
{
struct client {
int var;
char c;
};
client person1;
return 0;
}
I am doing this to get rid of the struct keyword.
Why do I get this error and how can I do it successfully with making the struct inside my main() function ?