Friday
December 19, 2014

Homework Help: computer science C++

Posted by Erika on Wednesday, February 15, 2012 at 7:38am.

The variables arr1 and arr2 have been declared as pointers to integers. An array of 10 elements has been allocated, its pointer assigned to arr1, and the elements initialized to some values. Allocate an array of 20 elements, assign its pointer to arr2, copy the 10 elements from arr1 to the first 10 elements of arr2, and initialize the remander of the elements of arr2 to 0.

Can someone help me get started on this program. This is a question from myprogramminglab..

Answer this Question

First Name:
School Subject:
Answer:

Related Questions

C++ - The variables arr1 and arr2 have been declared as pointers to integers . ...
computer science - The variable cp_arr has been declared as an array of 26 ...
computer science - 9.10: Reverse Array Write a function that accepts an int ...
computer science - int *reverse(const int *, int); int *temp; temp = reverse(...
computer science - The variable cp_arr has been declared as an array of 26 ...
computer science - Declare a structure whose tag name is Emp and that contains ...
computer science - Assume that BlogComment is a structured type with these ...
computer science - my code works in c++ so the logical I am getting error must ...
computer science - Write a method printBackwards that prints an array of ...
Programming - Here is the source code for the Kitty class: public class Kitty { ...

Search
Members