whats wrong with my code ?
i get the output that i need.
i just facing with 2 more problems.
for prob no 1.....
temp5->department != "SALES" is comparing pointers.
what i need to do is like this
how to change the pointer back to char ?
i did like this :
but it gives me compilation error.Code:char *dp; temp5->department = *dp; if(temp5->salary < 100 && strcmp(dp,"SALES")==0)