Ask your own question, for FREE!
Computer Science 10 Online
OpenStudy (anonymous):

Can anyone help me out with dynamic array?

OpenStudy (anonymous):

you mean like ArrayList?

OpenStudy (anonymous):

No, like dynamic memory. Im using c++

OpenStudy (bibby):

*var = new var[3]? what specifically do you need?

OpenStudy (anonymous):

What im trying to do is point to an array holding a number.

OpenStudy (anonymous):

We need more context. We don't know what you are talking about.

OpenStudy (rsmith6559):

When you request memory on the heap, a pointer to the beginning of the memory is returned. You have to declare the data type that you're going to store so that the compiler knows how many bytes to add to the pointer to get to the index that you want.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Latest Questions
Arriyanalol: i need help
21 hours ago 7 Replies 1 Medal
Arriyanalol: CONGRATS to me
1 day ago 8 Replies 2 Medals
Legomaster346: What colleges are good that are near Arab Alabama?
1 week ago 5 Replies 0 Medals
Arriyanalol: i need help
1 week ago 6 Replies 2 Medals
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!