1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Stolb23 [73]
4 years ago
10

c++: The variables arr1 and arr2 have been declared as pointers to integers . An array of 10 elements has been allocated, its po

inter 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 remainder of the elements of arr2 to 0.
Computers and Technology
1 answer:
amm18124 years ago
6 0

Explanation:

Two variables named arr1 and arr2 have been declared as pointers to integers and arr1 is allocated 10 elements and initialized to some values.

Lets allocate 20 elements to arr2  

int *arr2 = new int[20];

Now using for loop we can copy 10 elements from arr1 to the first 10 elements of arr2

start from k = 0 and k < 10

for (int k = 0; k < 10; k++)

{

arr2[k] = arr1[k];

}

Again using for loop we can initialize the last 10 elements of arr2 to zero.

start from k = 10 and k < 20

for (int k = 10; k < 20; k++)

{

arr2[k] = 0;

}

You might be interested in
Microsoft Paint can be described as a digital sketch pad ?
alexira [117]
Yes I can be be a digital sketch pad

HOPE THIS HELPS!!!!!!!
4 0
3 years ago
From the Software Engineering Code of Ethics, which clauses relate to intellectual property (check all that apply)
kaheart [24]

Answer:

A) "Identify, document, collect evidence and report to the client or the employer promptly if, in their opinion, a project is likely to fail, to prove too expensive, to violate intellectual property law, or otherwise to be problematic."

B) "Ensure that there is a fair agreement concerning ownership of any software, processes, research, writing, or other intellectual property to which a software engineer has contributed."

C) "Not knowingly use software that is obtained or retained either illegally or unethically."

Explanation:

All the above are connected to intellectual stuff and hereafter are the right possibilities. One requires to comprehend the definition of intellectual property. In fact, it is a software, a piece of script, art, etc. that a knowledgeable make using his intelligence. All the rights related to such is with the intellect. And that is why the above three choices is right.

The fourth choice has nonentity to do with intellectual stuff, and it deals with the skirmish of interest. And henceforth that is not a correct option.

5 0
3 years ago
Which four of the following qualify as fair use?
Angelina_Jolie [31]

Answer:

1, 3, 4, 5

Explanation:

4 0
3 years ago
All slide layouts have a content placeholder.
Mars2501 [29]
True, but the only way to get these constant place holders is of you program them in, in other words you have to tell the computer that you want them.
8 0
3 years ago
A user requests a webpage that consists of some text and 3 images. For this page:
ladessa [460]

Answer: none of the above

Explanation:

As there are 4 connections one each for text and other 3 for the images so we will have to send 4 HTTP request in order to receive 4 HTTP response. HTTP works on TCP connection and here the here the each of the connections will transport one request and response message.

Therefore, as the web page has some text and 3 images it will need to send 4 HTTP request messages. These messages upon received by the server will generate the contents of the web page.

So as none of the options given match the desired answer. therefore the option will be none of the above.

5 0
4 years ago
Other questions:
  • How to add a second screen to your computer?
    7·1 answer
  • What type of storage system is a hard drive on a computer?<br> Need HELP fast, please.
    9·2 answers
  • Using the drop-down menus, correctly match the name of the person with the computer-programming
    6·1 answer
  • What is a palindrome?
    13·1 answer
  • Which would increase electric current? increasing the resistance increasing the size of the wire decreasing the voltage
    6·1 answer
  • Discuss why it is common for XML to be used in interchanging data over the Internet. What are the advantages of using XML in dat
    7·1 answer
  • . Convert BAC4 from hexadecimal to decimal. Show your work.
    9·1 answer
  • People are not interested in what you do _____. I think, more and more, they're not even really interested necessarily in how yo
    8·1 answer
  • Portfolio Activity: Writing a Résumé
    5·1 answer
  • RIGHT ANSWER GETS BRAINLEST
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!