I just want to know what's the difference between like:
Student std[2];
and
Student std* = new Student[2];
I know the 1st one is like an array and you declare and a new memory for each index, but then how is it different if you do it the other way and how different it is when accessing members in the class?
I tried finding similar questions but no luck.
Thanks in advance.