Define a way other than using the keyword inline to make a function inline?
Answer Posted / subham chaudhary
The function must be defined inside the class.
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Can a program run without main function?
What are its advantages and disadvantages of multiple inheritances (virtual inheritance)?
Describe the advantages of operator overloading?
How to defines the function in c++?
What is the type of 'this' pointer?
Difference between strdup and strcpy?
What are the five basic elements of a c++ program?
Is C++ case sensitive a) False b) Depends on implementation c) True
Is main a class in c++?
What operator is used to access a struct through a pointer a) >> b) -> c) *
What is the limitation of cin while taking input for character array?
Explain deep copy?
What are protected members in c++?
I was a c++ code and was asked to find out the bug in that. The bug was that he declared an object locally in a function and tried to return the pointer to that object. Since the object is local to the function, it no more exists after returning from the function. The pointer, therefore, is invalid outside.
What is a container class? What are the types of container classes in c++?