return
returnで関数を終了する。
voidで作成した関数の場合、returnで関数を終了する。
例:
code:c
void test (void)
{
処理
return; //処理の終了
}
実行結果:https://paiza.io/projects/XTTSwExdMsuwUSC6EshjNw
参考:https://detail.chiebukuro.yahoo.co.jp/qa/question_detail/q11116710826