See the Problem:

C Programming
I have to define 1 structure


typedef struct
{
int roll;
char *name;
}stud;

stud s1;


now for this rollno, and character pointer i have to enter value &store it in file, in this way store many records should be entered , &I should be able to add, modify, delete & display the records fromfile using same structure. memory leckage & dangalling pointer errorshould not come.

I have tried a lot but it is not working, so please see if you can help out.

but the thing is that it must be a character pointer only not acharacter array. is it possible???

Using character array I have done the same but not using pointer in CProgramming.

rest is ok..