Array Pointer

plis somebody help me, i have this code, but i dont know what the next code to find a word from the array A B C D E... plis help meeee

#include <iostream>
using namespace std;
int main() {
char A[] = {'A','K','I','C','R'};
char B[] = {'N','O','N','A','U'};
char C[] = {'D','T','D','A','M'};
char D[] = {'A','A','A','C','U'};
char E[] = {'P','X','H','U','S'};

char *p[]={A,B,C,D,E};
char kata;

cout<<"Input kata : ";
cin>>kata;

cout<< sizeof(*p)<<endl;
cout<<sizeof(int)<<endl;
for (int i=0;i<5; i++) {
cout<<*(*(p+i));
}
return 0;
}
Topic archived. No new replies allowed.