In every programming language the return type of the function is must but here in the given code the return type for the following function is not given so this program will cause a syntax error that no return type is defined for the function getchoice.
getChoice(choice, count);
it should be like :
returntype getchoice(params);