Q:

C++ program to demonstrate example of Inline Function

0

C++ program to demonstrate example of Inline Function

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

Inline Function example in C++

/*C++ program to demonstrate Inline Function.*/
#include  <iostream>
using namespace std;
 
//inline keyword is only use in declaration.
inline int fun();
 
int main()
{
    fun();
    return 0;
}
 
int fun()
{
    cout << "I am from inline function " << endl;
    return 0;
}

Output

    I am from inline function

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Most popular and Searched C++ solved programs with Explanation and Output

Similar questions


need a help?


find thousands of online teachers now
C++ program to demonstrate example of Default Argu... >>
<< C++ program to use function as a LVALUE using refe...