x

Choose Country Code

x

Direction

x

Ask a Question

  • Ask a Question
  • Scan a Question
  • Post MCQ
  • Note: File extension must be of jpg, jpeg, png, bmp format and file size must not exceed 5 MB
x

Ask a Question

x

x
x
x
Hire a Tutor

Answers and Solutions

What's Your Question?
Answer

The inline functions are a C++ enhancement feature to increase the execution time of a program.Functions can be instructed to compiler to make them inline so that compiler can replace thosefunction definition wherever those are being called.

Answer

The inline functions are a C++ enhancement feature to increase the execution time of a program.Functions can be instructed to compiler to make them inline so that compiler can replace thosefunction definition wherever those are being called.

Answer

C++ inline function is powerful concept that is commonly used with classes. If afunction is inline, the compiler places a copy of the code of that function at each point where the function is called at compile time.

Answer

In definition point of view there is no difference except the keyword 'inline' before the function.  During the funtion call instead of linking the entire function will be substituted in that place.  Due to this, it eliminates the cost fo the calls. The following are the limitations for inline functions:

  •  Funtions are too long or if it returning any value.
  •  Funtions contains if a loop/swith/goto
  •  If functions contains static variables.
  • if cunctions are recursive. In the above sceniores that function will treated as normal function.

Post Answer and Earn Credit Points

Get 5 credit points for each correct answer. The best one gets 25 in all.

Post Answer