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


Please Help Members By Posting Answers For Below Questions

Can a program run without main function?

741


What are its advantages and disadvantages of multiple inheritances (virtual inheritance)?

707


Describe the advantages of operator overloading?

669


How to defines the function in c++?

719


What is the type of 'this' pointer?

700






Difference between strdup and strcpy?

757


What are the five basic elements of a c++ program?

692


Is C++ case sensitive a) False b) Depends on implementation c) True

695


Is main a class in c++?

641


What operator is used to access a struct through a pointer a) >> b) -> c) *

713


What is the limitation of cin while taking input for character array?

1567


Explain deep copy?

695


What are protected members in c++?

718


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.

695


What is a container class? What are the types of container classes in c++?

760