void getStudentV1(){
printf("Enter student ID Number: \n);
scanf("%d", &student.ID); // you refer to student.ID but there is no variable student declared anywhere.
void displayStud(studtype S){ // you pass in a structure named S but never refer to it
studtype student; // you are creating a local student structure which will disappear when this function returns.
printf("\n%-10s", student.ID); // the local student structure does not contain any information
}
You should create your structure variables in main and pass pointers to them to your functions; something like:
int main()
{
studtype student;
getStudentV1(&student);
displayHeader(&student);
displayStud(&student);
return 0;
}
void getStudentV1(studtype *student)
{
scanf("%d", &student->ID);
}