difference bw making pointer and object

We have 2 situation in case 1 we made an array of 10 objects of class and in situation 2 we made an array of 10 pointer to a object(assigning its address) what is the fundamental dif bw 2 cases

Arrays are not essential to the question. You do ask what is the difference between a variable of type T and a variable of type pointer. The data stored in a pointer is a memory address. Pointer has a dereference operator that returns an object from the memory location specified by the address.
THnak you :)
Topic archived. No new replies allowed.