is there any difference in inline void and void?
because i have noticed that
will do the same if i leave out inlineCode:#include <iostream> using namespace std; inline void hello() { cout<<"hello world"<<endl; } int main() { hello(); cin.get(); }
Code:#include <iostream> using namespace std; void hello() { cout<<"hello world"<<endl; } int main() { hello(); cin.get(); }