Closed

i need help with my question -- 4

Write a function that accepts an int array and the array’s size as arguments.

The function should create a new array that is twice the size of the argument array.

The function should copy the contents of the argument array to the new array, and initialize the unused elements of the second array with 0.

The function should return a pointer to the new array.

Additional Requirements:

Demonstrate your function in a program by initializing an array in main and passing it and it's size to your function. Use the pointer returned by your function to print the contents of the array in main. Don't forget to delete the array at the end of main using the pointer.

Your function should not interact with the user in any way (no cin or cout statements).

Do not use global variables.

Your function must use dynamic memory allocation to create the array. If it does not, you will receive 0 points for the assignment.

Do not use smart pointers.

Skills: C++ Programming

See more: need someone to help with an academic write up, brainstorm the topic of the newspaper article don t forget to remind them about the layout of a newspaper article catchy headlin, don t know how to write a book but want to who could i talk to to help write a book, help i need someone to write my research papers, i don t have money for a designer but i need help with my kitchen layout, i need a lawyer to help me in getting a divorce but i don t have money in lagos, i need to write an essay but i don t have microsoft word, l need help with how to write a letter about i caught my neighbour son smoking weed how tobstratvthe letter ndvend it best lette, i want to write but i don't know what to write about, failed to send. you don't have permission to message this user. freelancer, follow your heart but don't forget to take your brain with you, don't forget our esports dream romance, don't forget our esports dream free download, don't forget our esports dream plot, don't forget our esports dream wiki, don't forget our esports dream review, don't forget our esports dream download, don't forget our esports dream endings, don't forget our esports dream vndb, don t let the urgent get in the way of the important

About the Employer:
( 0 reviews ) Berkeley, United States

Project ID: #27902879

12 freelancers are bidding on average $13 for this job

harissheikh255

Hello,I will do simplest coding in C++,C using OOP,data structures [login to view URL] it is an assignment then coding will be easily understandable for u.I have done many C++ works [login to view URL] have a chat. Thanks.

$11 USD in 1 day
(48 Reviews)
5.1
anandkumarcb2014

I have 15+ years of experince in C and C++ programming and have handled multiple projects in similar field. I can help you with your work. Please ping me more details so we can work on this

$10 USD in 7 days
(2 Reviews)
2.0
ahmedbilal2506

Hi sir I am interested to work with you. I can provide you professional web design services. I can design for you according to your requirements. I will give you unlimited revision until you will not satisfy for your d More

$10 USD in 1 day
(1 Review)
0.7
Savin0987

HI I am Algorithm expert with C++. My skill is Python,C/C++,C#,Java,Flutter,Javascript,php, I think i can help you with my experience. looking forward to you reply. Thank you.

$20 USD in 1 day
(0 Reviews)
0.0
Vitaliy23Avram

Hi Thank you for posting me. I am an algorithm expert. I took part in acm contest. I can finish your task in a few hours. thank you.

$30 USD in 1 day
(0 Reviews)
0.0
tejat91

Hi, I'm an expert C++ developer and have hands-on experience working on various data structure/algorithm projects. Let me know further details. Regards, Teja

$10 USD in 1 day
(0 Reviews)
1.0
az889480

Hi, Dude luckly I have the cpp file that contains the code of this project. I can send it to you withen 2 hours. Believe me withen two hours.

$10 USD in 1 day
(0 Reviews)
0.0
NichitaDolinschi

Hello ready to take on your job, I have been working with C ++ for 3 years, so your task will be very simple for me)

$10 USD in 2 days
(0 Reviews)
0.0
shehzadhassan112

Hi respected Sir, I hope you are enjoying good health. We are a team of C++ developers . We will create a function for you That Accepts the size and array elements as input and creates another array of double size. We More

$10 USD in 1 day
(0 Reviews)
0.0
b3jn

Hello, i am looking for project to start my freelance career. I have a lot of experience working with C and C++ languages, and think that we can do this really easy. Mainly doing this for reviews, so the payment is opt More

$10 USD in 1 day
(0 Reviews)
0.0
shahroozleon01

Hi, I can do that, that's super easy, Consider it done, just email me and get your answer. I'm a second year university student in Computer Science and I've been learning and practicing C++ for 4 years. I've made a ful More

$10 USD in 1 day
(0 Reviews)
0.0
king1abdulmajid

hey I am expert in that and luckily I have already done this a few months back just give me an opportunity and see [login to view URL] for your reply.

$10 USD in 1 day
(0 Reviews)
0.0