vector/pointer?

Started by
1 comment, last by Tree Penguin 18 years, 7 months ago
Hi, is there a difference between a vector and a pointer or is it really the same thing? Thanks.
Advertisement
Assuming you're talking about C++, a vector and a pointer are two very differnt things. A std::vector object contains a dynamic array of objects. A pointer is a low level construct that contains a (possibly invalid) memory address of an object.
Ah, ok, thanks.

This topic is closed to new replies.

Advertisement