Example Inline Function
#includeHowever, once the program is compiled, the call to hello(); will be replaced by the code making up the function.using namespace std; inline void hello() { cout<<"hello"; } int main() { hello(); //Call it like a normal function... cin.get(); }
No comments:
Post a Comment
Thank you