C++ Inline Function Question:
Download Questions PDF

The Inline functions may not work ______.

1. If function contain static variables
2. If function contain global and register variables
3. If function returning value consists looping construct(i.e. for, while)
4. If inline functions are recursive
5. If function contains const value

a. Only 1,4,5
b. Only 2,3,5
c. Only 1,3,4
d. All of these

C++ Inline Function Interview Question
C++ Inline Function Interview Question

Answer:

c. Only 1,3,4

Download C++ Inline Function Interview Questions And Answers PDF

Previous QuestionNext Question
Default values for function are specified when____.

a. function is defined
b. function is declared
c. Both a and b
d. None of these
If program uses Inline Function, then the function is expanded inline at ___________.

a. Compile time
b. Run time
c. Both a and b
d. None of these