The keyword inline means the code is substituted for the declared inline 
function call in its place itself and this is done at compile time and 
mostly an optional one left to the compiler to substitute or not.
since you have used inline in the snippet it means i checks for the function 
definition during compile time itself and substitutes the code of inline 
void f() in the place of f() within the main.So there wont be any problem.
but if you remove the keyword inline then it become an ordinary function 
call.In C, you have to declare or define the function before making a call 
so that compiler can resolve it as "function call".Otherwise it treats the 
'f() ' as normal variable declaration and throws error...

so you can add the lines:
void g();
void f();
before the main and you can compile the program.
An other criteria would be placing the defintion blocks of functions f() and 
g() before main() function.

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/algogeeks/-/T1c4QQbX83gJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to