Ok matsp.. the problem is that it's not compiling!
i get a compile time error. Leaving apart the logical errors like not allocating memory just i want to the syntactical error! in the definition of the 2 functions! why 1 ones and other one even though it's exactly same not working??
i get a compile time error "Undefined Structure student"