questa è la mia struct
codice:
struct student{
char studentFirstName[40];
char studentLastName[40];
int studentAge;
int studentRollNo;
char studentClassSection[2];
int studentTotalNumber;
char studentPromotion[5];
struct student* nextPoint;
};
questa è la mia funzione che uso per inserire tutti dati nella link list
codice:
void insertDataIntolinkList(char *stufirstname,char *stulastname,int stuage, int sturollno, char *stuclasssection, int stutotalnumber, char *stupromotion){
struct student* tempStudentInfo = (struct student*)malloc(sizeof(student));
(*tempStudentInfo).studentFirstName = stufirstname;
}
(*tempStudentInfo).studentFirstName = stufirstname qui mi da un errore dice che espressione deve essere di un lvalue modificabile cosa vuol dire grazie mille