we use void
before a function when that function returns nothing. So, if your function returns nothing than you can use void
. If your function return int
then use int
before the function name. Basically whatever data type your function returns use that type infront of your function name.
By the way, you are passing character to your disp
function not the whole array.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…