Hi all,
What is the difference between these two statements?
int* a = new int[8]
and
int a[8]
The reason I ask is because this
int len = sizeof(a) / sizeof(*a)
works for the second construct, but not the first.
What is the difference between these two statements?
int* a = new int[8]
and
int a[8]
The reason I ask is because this
int len = sizeof(a) / sizeof(*a)
works for the second construct, but not the first.
Comment