Well... Your array is actually a pointer, so the function sizeof() will always return 4 because that's the size of a pointer. Getting the number of elements in an array is a different thing. Now, I think you should do this some other way. First of all, why would you want to give the user unlimited input length? Just specify a limit and save yourself a headache. Second, maybe it could help to know the length of the array before allocating any memory... but, well, what is it you want to do? Aritosteles