我正在学习C,因此尝试了以下代码,并获得了7,6而不是的输出6,7。为什么?
7,6
6,7
#include <stdio.h> int f1(int); void main() { int b = 5; printf("%d,%d", f1(b), f1(b)); } int f1(int b) { static int n = 5; n++; return n; }
c function-call order-of-execution
c ×1
function-call ×1
order-of-execution ×1