How can I introduce an allocatable array which allocate in subroutine?

If I declared “allocatable”, the compiler shows error that: C is a dummy argument so can not be allocatable