单项选择题

在定义函数fun(charsex)时,如果函数需要返回整数,则下面函数定义正确的是()

A.voidfun(charsex){}
B.charfun(charsex){}
C.floatfun(charsex){}
D.intfun(charsex){}