Good day! I would like to ask on how to reverse arrays and putting it on another array of char?
string str;
int k=0, count = 0,namelength, acc=0;
char name[80];
char extract[80];
char reversing[80];
for(int j=0; j<strlen(extract);j++){
reversing[strlen(extract) -j]= extract[j];
}
for(int w; w<=strlen(extract);w++){
cout << reversing[w];
}
Is it correct?