I have made an array of objects in my c# and also initialized it but when i run the code and try to access it says null exception occurred and the code crashes. any solutions???
I have tried many methods but all in vain and I have also given a code snippet below of what I am doing.
Various links that I have visited too but some of them I weren't be able to understand and some of them are not working
Student stu = new Student[100];
stu = new Student();