inline int factorial(int n) { if(!n) return 1; else return n*factorial(n-1); }
在我阅读本文时,发现如果编译器没有正确处理上述代码会导致"无限编译".
编译器如何决定是否内联函数?
c c++ compiler-construction
c ×1
c++ ×1
compiler-construction ×1