|
Were do you declare the variable or should I say pointer called pointer?
used here: gets (pointer->name);
I also notice that you have name as a char[20], but when the user input the name you do not checking for size. I could be wrong, but I think that could cause a buffer over flow?
__________________
|