i am doing a problem . take character dynamic of size 10.when user enter 11th element.it increment the array size to 20. when user enters 21st element array size increases to 30 and so on
int main(){
char *p;
p=new char [];
int size;
for(int i=0 ;i<10; ++)
cin>>p;
size=strlen(p);
i only manage to do this .i m a new in programming. please help to complete this code