Saturday 5 July 2014

C++ program to print hello world using inline function


Here is a C++ program to print hello world using inline function


 SOURCE CODE OUTPUT
#include<iostream>
using namespace std;
inline void print()
{
    cout<<"Hello world";
}
int main()
{
    print();
    return 0;
}

Any questions regarding to program please write in comments.

No comments:

Post a Comment