Prepare
Practice
Interview
Aptitude
Reasoning
English
GD
Placement papers
HR
Current affairs
Engineering
MCA
MBA
Online test
Login
Online Practice Test
>
CPP
Next »
Inline functions are invoked at the time of
Options
- Run time
- Compile time
- Depends on how it is invoked
- Both b and c above
CORRECT ANSWER : Compile time
Discussion Board
C++ - Inline Function
Inline function is a powerful concept in C++ programming language. It increases the execution time of a program. Inline function is a request to the compiler and an optimization technique used by the compiler. So, the answer is right, Inline functions are invoked at Compile time. Inline function is a combination of macro and function.
Prajakta Pandit 01-2-2017 11:17 PM
Hii
Super
Aravindkumar 10-30-2015 11:39 AM
Inline functions
Inline functions are like macros in c language. The functions are expanded in the line where it is invoked at the time of compilation.
Inline functions 04-8-2015 12:19 AM
This is ridiculous
So if I write an inline function that trades a stock on the stock market for me, you're telling me that it will make that trade when I compile the program, without even running it? This is obviously incorrect, and a misuse of the work "invoke".
Matt 02-18-2015 01:50 PM
Are you kidding me?
Compile time, really??
They are placed whenever they are invoked
Neeraj 11-7-2014 03:41 AM
inline function
An inline function is a function that is expanded inline at the point at which it is invoked, instead of actually being called.
If a function is inline, the compiler places a copy of the code of that function at each point where the function is called at compile time.
career 08-17-2014 01:44 AM
Questions again
Invoked usually means called. All functions are called at runtime. Did you means, what is an inline function. That make more sense.
I'm guessing your questions weren't written by someone who knows C++
Shauno 08-16-2014 12:55 PM
Next »
Write your comments
*
*
Email must be in the form someone@domain.com
*
*
Enter the code shown above:
Please enter the code shown above
(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)
Related Content
C test (42)
C (12)
C++ for beginners (10)
C++ (20)
C++ (24)
C++ (18)
C++ (14)
C++ (12)
C++ (15)
C++ (15)
Data structure (20)
Data structure (10)
Data structure (10)
Data structure (10)
PERL (25)
VC++ (11)
Oops (30)
Mainframe (41)
Mainframe (15)
Embedded systems (15)
OOAD (49)
Advertisement
▲