Get premium membership and access questions with answers, video lessons as well as revision papers.

What is an inline function? Write a c++ program to find the maximum of two numbers using inline function?

      

What is an inline function? Write a c++ program to find the maximum of two numbers using inline function?

  

Answers


Francis
is a function that is expanded in a line when invoked.
#include
using namespace std;
inline float max(float a,float b)
{
return(a>b);
}
int main()
{
float a = 12;
float b = 20;
cout<<(a,b)
cout<<(a,b)<<"\n";
return 0;
}
Francis Nkurumwa answered the question on March 1, 2018 at 15:20


Next: What is a statement? Explain jump statement with syntax
Previous: What is a function overloading? What are the importance?

View More Computer Science Questions and Answers | Return to Questions Index


Learn High School English on YouTube

Related Questions