typedef struct
{
int id = 0;
char *name = NULL;
char *department = NULL;
int phone = 0;
} emp;
In C programming is it a good programming practice to do something like that, or, should I initialize when I declare the variable 'emp'.
I am using a GCC compiler and the above code does compile. I want to know if it is the proper way of initializing.