无参数

函数

//(void) 表示“没有参数”;
//自 C23 起,空的 () 含义相同
void sayGoodbye(void) {
    printf("Goodbye!\n");
}

sayGoodbye();
//输出 "Goodbye!"