What\'s the difference between inline function and then main like so:
inline double cube(double side)
{
return side * side * side;
}
int main( )
{
cu
When you declare a function inline the compiler tries to speed up the code by more or less copying the body of the function to where it's called. It's only a suggestion and it's up the the compiler to make the decision on if it's possible.
I'm not sure what would happen in the 3rd example. I imagine it would depend on the tool chain being used.