the readline function we made is of void type how it can return anything? and what does it return here?:-
void readline(char a[], int maxLength){
int i = 0;
char ch = cin.get();
while (ch !=’\n’)
{
a[i] = ch;
i++;
if(i==(maxLength-1)){
break;
}
ch = cin.get();
}
a[i] = '\0';
return ;
}