how to print struct from another function?
let's say I have code this way
Code:struct student{
int id // simple example
};
main(){
modify_data(); // calls the function.
}
lode_struct_function()
{
// here I load the struct value from the file.
struct student line[i] // i comes from another function.
line[i].id = student_id;
}
modify_data()
{
struct student line[i] // ? ?????
printf("%d",line[i].id); // here is the key how can i print line[i].id on this function?
}