int edit(struct Student& data)
{
}

If you are working with C:

int edit(struct Student* data)
{
}