Code:bool AddRecord(StudentRecord**& Records, int& numRecords){
struct StudentRecord
{
char* firstName; // student key
char* lastName; // student name
int id; //student id
float mark; // course mark
};
StudentRecord**Temp; /*Declare array of pointers to a struct*/
Temp=new StudentRecord*[1000]; /*dynamically allocate memory*/
Temp[0]->firstName=new char[1000]; /*crashes here, why?*/
}