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
Nookie1986 [14]
3 years ago
11

Concatenating arrays Strings have build-in functions to perform concatenation. Write a function called append () that performs c

oncatenation for two char arrays (you will have to pass in a third char array that will hold the result). You will also need to pass in the lengths of each char array. You may not use strings for this part. Sample main code: char first[ ] = {'?', ' ', 'a', 'm', ' '}; char second[ ] = {'i', 'r', 'o', 'n', 'm', 'a', 'n', '\0'} char result[200]; append(first, 5, second, 8, result); cout << result; Example output for code above:
Computers and Technology
1 answer:
olganol [36]3 years ago
4 0

Answer:

Check the explanation

Explanation:

#include<iostream.h>

#include<stdlib.h>

void append(char* first,int n,char* second, int n1,char* result)

{

  int i,j=0;

  for(i=0;i<n;i++)

      result[i]=first[i];

  for(i=n;i<n1+n;i++)

  {

      result[i]=second[j];

      j++;

  }

}

void main()

{

  char first[]={'I', ' ','a', 'm', ' '};

  char second[]={'i', 'r', 'o', 'n', 'm', 'a', 'n','\0'};

  char result[200];

  append(first,5,second, 8, result);

  cout<<result;

  cout<<endl;

  system("pause");

}

You might be interested in
A software is made from​
andriy [413]

Answer:

Two or more languages are used for making one particular software.

5 0
3 years ago
The accounting department moved its network-attached printer from one side of the office to a more centralized location, making
Blababa [14]

Answer:

The cable run connecting the new keystone jack to the patch panel is bad.

The patch panel connector for the new location's cable run is not connected to a switch.

Explanation:

The cable run connecting the new keystone jack to the patch panel is bad.

The patch panel connector for the new location's cable run is not connected to a switch.

5 0
4 years ago
Computer spreadsheet is a grid of​
Kruka [31]
Huh we’re, we’re is the computer screen shot
3 0
3 years ago
What would you NOT use a router for? *
Alla [95]

Answer:

<h2><u>A</u><u>.</u><u> </u><u>To</u><u> </u><u>run</u><u> </u><u>applications</u><u> </u><u>on</u><u> </u><u>your</u><u> </u><u>computer</u></h2>

3 0
3 years ago
Why does the position of drawCircle(x, y, r) in the answer choices matter?
Andrei [34K]

Answer:

B and C

Explanation:

xPos and yPos determine the center of the circle, and rad determines the radius of the circle drawn.

It cannot be A because it starts drawing a circle with the center of (4, 1). None of the circles ahve a center at (4, 1). It is B because while it does start at (4, 1), the repeat function adds one to the y and radius. While ti repeats 3 times it ends up drawing all 3 circles. C also works because it starts by drawing the biggest circle and then subtracting the values to make the other two. It cannot be D because in the repeat function it subtracts from the y value and radius too early, it doesn't draw the biggest circle.

6 0
2 years ago
Other questions:
  • You're working at a large industrial plant and notice a tag similar to the one shown in the figure above. Which of the following
    5·1 answer
  • Which of the following is a Microsoft solution that runs on a Microsoft Terminal Services server but appears, to end users, as i
    10·1 answer
  • Blender questions
    10·1 answer
  • A resistor bank is connected to a controller with conductor insulation rated 75 °C. The resistors are not used in conjunction wi
    15·1 answer
  • Each row in a database is a set of unique information called a(n) (A.)table,(B.)record,(C.)object,(D.)field
    12·2 answers
  • How can I collect tweets from different accounts concurrently and categorize the tweets in a corpus?
    15·1 answer
  • A popular encryption method used to protect data that travel over a wireless network is ___
    15·1 answer
  • What does “human-like” mean when we are talking about a machine?
    7·1 answer
  • Hi guys, Im making a game. I want to make a collision event, but what is the code for making the wall and the box collide. I rea
    6·1 answer
  • Write a program that accepts the lengths of three sides of a triangle as inputs. the program output should indicate whether or n
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!