ok, im trying to write a function that dynamically allocates an array of integers. The function should accept an integer argument indicating the number of elements to allocate. Lastly the function should return a pointer to the array. If anyone can help much appreciated
Thanks in advance
joelw
0
Light Poster
Recommended Answers
Jump to Post>>im trying to write a function
please post what you have so far.
Jump to PostAre you using C or C++?
All 8 Replies
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
manutd
2
Junior Poster
joelw
0
Light Poster
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
joelw
0
Light Poster
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
joelw
0
Light Poster
Lerner
582
Nearly a Posting Maven
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.