Please be aware that I am new to C. I am coding a function that receives a number and returns a *char formed by '*' of the received length. i.e:
createHiddenName(6)//returns "******"
createHiddenName(4)//returns "****"
I've coded it like this, but it's not working:
char *createHiddenName(int length)
{
    char *hidden[length];//
    int i;
    for (i = 0; i < length; i++) {
        hidden[i] = '*';
    }
    return *hidden;
}
Any help would be highly appreciated. Thank you so much
 
     
     
     
    