Create Dynamic Array With Function In C