Will the inline function be compiled as the inline function always? Justify.



Will the inline function be compiled as the inline function always? Justify...

Answer / atul shankhwar

An inline function is a request and not a command. Hence it won't be compiled as an inline function always.
Explanation:
Inline-expansion could fail if the inline function contains loops, the address of an inline function is used, or an inline function is called in a complex expression. The rules for inlining are compiler dependent.

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More C++ General Interview Questions

Please explain the reference variable in c++?

0 Answers  


Write a program to find the reverse Fibonacci series starting from N.

0 Answers   Huawei,


Why do we use pointers in c++?

0 Answers  


Explain the difference between using macro and inline functions?

0 Answers  


What is namespace std; and what is consists of?

0 Answers  






What are friend functions in C++?

0 Answers   BlackRock,


What is function overloading c++?

0 Answers  


this is to swap to strings....but in output the whole strings are swapped leaving first as it is...why it is so #include<iostream.h> int main() { char a[]="ajeet"; char b[]="singh"; long x=*a; long y=*b; cout<<x<<":"<<y; x=x+y; y=x-y; x=x-y; *a=x; *b=y; cout<<x<<":"<<y; cout<<&a<<endl; cout<<&b<<endl; }

1 Answers  


How to allocate memory dynamically for a reference?

0 Answers  


What is an undefined reference/unresolved external symbol error and how do I fix it?

0 Answers  


Why can templates only be implemented in the header file?

0 Answers  


Badboy is defined who has ALL the following properties: 1. Does not have a girlfriend and is not married. 2. He is not more than 23 years old. 3. The middle name should be "Singh" 4. The last name should have more than 4 characters. 5. The character 'a' should appear in the last name at least two times. 6. The name of one of his brothers should be "Ram" Write a method: boolean isBadBoy(boolean hasGirlFriend , boolean isMarried, int age , String middleName , String lastName , String[] brotherName); isHaveGirlFriend is true if the person has a girlfriend isMarried is true if the person is married age is the age of the person middleName is the middle name of the person lastName is the last name of the person brotherName is the array of the names of his brothers

1 Answers  


Categories