When a function is made inline. Write the situation where
inline functions may not work.
Answers were Sorted based on User's Feedback
inline function can be use in single line manipulations in
program it cannot use in looping, branching
| Is This Answer Correct ? | 4 Yes | 1 No |
Answer / guest
THE FUNCTION WHICH IS DECLARE INSIDE THE BODY OF THE BASE
CLASS, IS CALLED INLINE MEMBER FUNCTION.
THE INLOINE FUNCTION MAY NOT WOLRK WHEN IT IS NOT ACCESSED
THROUGH THE OBJECTS.
| Is This Answer Correct ? | 3 Yes | 2 No |
What is protected inheritance?
What are the advantages of using const reference arguments in a function?
There are 100 students in a class. The management keep information in two tables. Those two tables are given like Roll no Name Age 001 ABC 15 002 XYZ 14 and Roll No Subject Marks 001 Math 75 001 Physics 55 002 Math 68 001 Hindi 69 They want the information like this Roll No Name Hindi Physics Math Total 001 ABC 69 55 75 199 002 XYZ 68 74 84 226 And Roll No Suject Highest 001 Math 98 007 Physics 84 021 Hindi 74 All 275 All information is kept in structure in main memory. You have to find last two tables.
How do you know that your class needs a virtual destructor?
How do you instruct your compiler to print the contents of the intermediate file showing the effects of the preprocessor?
Explain "passing by value", "passing by pointer" and "passing by reference" ?
What is namespace std; and what is consists of?
program in c++ to input digits and print in words
Define virtual constructor.
Under what conditions is multiple inheritance not recommended?
What is pair in c++?
Why do we use using namespace std in c++?