![salmamontero1998](/avatars/15740.jpg)
salmamontero1998
16.04.2020 •
Computers and Technology
Concatenating arrays Strings have build-in functions to perform concatenation. Write a function called append () that performs concatenation 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:
Solved
Show answers
More tips
- H Health and Medicine 5 Simple Steps to Quit Smoking for Good...
- H Health and Medicine Coughing: Causes, Types, and Treatment Methods...
- H Health and Medicine How to Treat the Flu: A Comprehensive Guide...
- O Other What is a Disk Emulsifier and How Does it Work?...
- F Family and Home What does a newborn need?...
- F Family and Home Choosing the Right Car Seat for Your Child: Tips and Recommendations...
- F Food and Cooking How to Get Reconfirmation of Registration?...
- C Computers and Internet How to Get Rid of Spam in ICQ?...
- A Art and Culture Who Said The Less We Love a Woman, the More She Likes Us ?...
- F Family and Home How to Get Rid of Your Neighbors?...
Answers on questions: Computers and Technology
- M Mathematics Which expression is represented by the model? A. x - 3 B. x + 3 C. -x - 3 D. -x +3...
- C Chemistry Which of the following is NOT a true state- ment about gases?...
- E English What measures were taken for the conservation of tigers and with those efforts a success or failure...
- M Mathematics How many hours minutes and seconds are in 2165 days?...
- H History Ordena cronológicamente del 1 al 7 los hechos que propiciaron la expansión cultural y económica europea.Américo Vespucio exploró las costas sudamericanasAuspiciado...
Ответ:
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");
}
Ответ:
dissolving power of rain water
Explanation:
The process where the water absorbs CO2 making it a bit acidic so over a period of thousands of years it erodes the limestone
This is correct
Hope this helps!!