1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
#include<iostream>
using namespace std;
const int SIZE=10;
char ch3[SIZE*2];
char *ch1TOch2(char*, char*); // IntiToInt2 (int*, int*,int* );
void Pri(char[]); // Pri( int *);
int main() {
char ch1[SIZE] = {'a', 'x', 'b', 'd', 'g', 'f', 'v', 't', 'r', 'k'};
char ch2[SIZE] = {'X', 'G', 'H', 'J', 'L', 'T', 'V', 'D','B', 'Q'};
cout<<"The concantnated array is: "<<'\n';
Pri(ch1TOch2(&ch1[0], &ch2[0]));
system("pause");
return 0;
}
char *ch1TOch2(char *a, char *b){
char *temp = &a[0] ;
return &temp[0];
}
void Pri(char c[]){
return;
}
|