0

What's the real difference between declaring an array like this:

 array<int, 10> arr;

and

int arr[10];
PAV
  • 39
  • 1
  • 8
  • The first one is a class defined in the standard library – UnholySheep Apr 10 '20 at 11:54
  • If you have `arr1` and `arr2`, declared thusly, `arr1=arr2` will work in one case, and not in the other one. Not the only difference, but the first one to get you started in the right direction. – Sam Varshavchik Apr 10 '20 at 11:54
  • 2
    That's a question about performance, but answers also describe difference https://stackoverflow.com/questions/30263303/stdarray-vs-array-performance – fas Apr 10 '20 at 11:54
  • The links you both provided were helpful thank you. – PAV Apr 10 '20 at 14:01

0 Answers0