單項選擇題

以下選項中對于無參數(shù)函數(shù)的定義形式正確的是()

A.voidfun{}
B.voidfun(){}
C.voidfun(inti){}
D.voidfun()

微信掃碼免費搜題