How to create array whose six is to be inputted

can i create an array whose dimensions are to be inputted by user. if yes then how to do it . is there any special fuction for it