Just compile it and inspect the error and warning messages. Note that the messages inform you about the line number and the column where the compiler detected a problem (here using GCC as example).
test.c:2:6: warning: return type of ‘main’ is not ‘int’
should return an int:
test.c:7:1: warning: format ‘%d’ expects type ‘int *’, but argument 3 has type ‘short int *’
You have to use the
scanf("%c, %hd, %f", &gender, &age, &salary);
test.c:8:1: error: expected ‘;’ before ‘printf’
There is a semicolon missing at the end of the previous line (see above; I have added it there already).
test.c:10:8: error: ‘Employee’ undeclared (first use in this function)
... (more errors on line 10)
There is a double quote missing on that line:
printf("Employee salary is : %f\n", salary);