You are printing all the details without any spaces or end of line characters. Change to something like:
void displaylistoftBankinfo(Bankinfo *n,int size){
for(int i=0;i< size; i++){ cout<<n[i].name << ", ";
cout<<n[i].location << ", ";
cout<<n[i].manager_name << ", ";
cout<<n[i].bank_id << ", ";
cout<<n[i].emp_numbers << endl << endl;
}
}