D
Digital Puer
I got this on an interview: Is it possible to write inline recursive
functions?
I said yes, but there is no guarantee that the compiler will
definitely
inline your code even if you write "inline". Is this a right answer?
It seems to be independent of whether or not the function is
recursive.
Another question: how can you tell if the compiler has inlined your
code when you have used "inline"? Compare the size of the binary?
functions?
I said yes, but there is no guarantee that the compiler will
definitely
inline your code even if you write "inline". Is this a right answer?
It seems to be independent of whether or not the function is
recursive.
Another question: how can you tell if the compiler has inlined your
code when you have used "inline"? Compare the size of the binary?