What are inline functions?

Answer Posted / laxman

Inline function :-

In genereal function call branching method is there . In
inline function substitution takes place . Inline
functions are expanded during compilation . Exectution
becomes fast and branching is eliminated. Inline word is a
request but not command. If inline is not possible compiler
takes it like a genral function call.
rules:
1 function should be small
2. Controll statements are not valid like for ,while


if u need more mail to me

Is This Answer Correct ?    6 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between public, private, and protected access?

628


Define friend function.

582


What is runtime errors c++?

586


What is meaning of in c++?

683


What do c++ programmers do?

566






Differentiate between realloc() and free().

603


can any one help to find a specific string between html tags which is changed to a sting.. weather.html looks (for location) is somewhere #include #include #include using namespace std; string find_field(string myPage,string); int main (void) { string page, line, location, temperature; ifstream inputFile("weather.xml"); while(getline(inputFile, line)) { page.append(line); line.erase(); } // Now page is a string that contains the whole xml page // Here you need to write something that finds and // extracts location and temperature from the XML // data in the string page and stores them in // the strings location and temperature respectively location=find_field(page,"location"); temperature=find_field(page,"temp_c"); cout << "Location: "<

1649


When do we use copy constructors?

605


What do you mean by ‘void’ return type?

618


Is java the same as c++?

557


write a corrected statement so that the instruction will work properly. if (4 < x < 11) y = 2 * x;

1524


Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create

2082


What is the difference between delegation and implemented-in-terms-of?

535


What is scope in c++ with example?

646


What are the steps in the development cycle?

625