Загрузка страницы

Inline function in C++ Programming Language

Inline function is means as per line function execute their line of code, cursor not go to execute that their location but function come in cursor place like function is write like at that place, but use of inline some rules must be follow other that function not work as inline but normal function work. You can write the inline keyword but after the function work as normal function. The rules of inline function are as following: 1. Only one or two line of code use in inline function. 2. That function not use any loops, complex logic and goto statements. 3. That function not use recursion function concept. 4. Inline function not use static variables. In class in side definition of member functions are define work as inline function we can not write inline keyword as prefix of that member function, but follow the rules. If class member function we can write out side of that class then we must be write inline keyword than and than benefit inline function concept.

Видео Inline function in C++ Programming Language автора Knowledge Galaxy
Показать
Страницу в закладки Мои закладки
Все заметки Новая заметка Страницу в заметки