Would a constant-size array int x[20]
be smaller than a dynamic array int * x = new int[20]
, since the dynamic array is a pointer, which takes up space? Or is the constant-sized array a pointer too? Why or why not?
Another question: Something I've never been 100% sure about is, on a 32-bit machine, are pointers 32 bits long? And are pointers treated the same way as regular variables when it comes to the location in the RAM in which they are stored?
Help would be very much appreciated.