07/12/24 09:47:32
>>49
int f(int x) {
return 2 * x + 1;
}
int main() {
printf("%d\n", f(3) + 4);
return 0;
}
とした場合、
int main() {
int f3;
f3 = 2 * 3 + 1;
printf("%d\n", f3 + 4);
return 0;
}
みたいな感じで処理される。
実際には、関数を呼ぶとその関数の中に処理が移動して、
関数の中の処理が終了すると関数を呼んだ位置に戻ってくるんだけどね。