We can pass constant parameters to functions using the ‘const’ keyword.
When a parameter or reference is const, it cannot be changed inside the function.
When we make a function call, internally it involves a compiler storing the state of the program on a stack before passing control to the function.
When the function returns, the compiler has to retrieve the program state back and continue from where it left.
This poses an overhead. Hence, in C++ whenever we have a function consisting of few statements, there is a facility that allows it to expand inline.
C++ Tutorial Playlist :https://youtube.com/playlist?list=PLNCqhNH6OTExhKIfKTkGbjltqW1zeWWvF
C++ PDF NOTES : https://drive.google.com/drive/folders/1lNr74010r8DvyR-PLkxAefEzhW3pT27V?usp=sharing
Connect with me on :
Telegram : https://t.me/rahul_vs
Twitter : https://twitter.com/de_codrr
Linkedin : https://www.linkedin.com/in/i-rahul-vishwakarma
Instagram : https://www.instagram.com/codekadose1/
Facebook : https://www.facebook.com/irahulvs
#codekadose #cpp #cplusplus #inlinefunction #datatypes
------------ IGNORE THIS-----------------
use of inline function in c++
inline function example
inline function in c++ advantages
inline function in c++ with example ppt
inline function in c++ in hindi
inline function in c++ with example pdf
inline function in c++ javatpoint
advantages and disadvantages of inline function in c++
default arguments in c++ example
default argument in c
c++ default parameters header
constant arguments in c++
default argument in c++ in hindi
advantages of default arguments in c++
constructor with default arguments in c++
default arguments python
const,c++ const reference parameter,parameter,c++ const,parameters,const data member in c++,function parameters,route parameters,const member function,variation of parameters,by-value parameters,route parameters tutorial,route parameter,react route parameters,const member function in c++,parameters and arguments,declaring function parameters,parameters and prototypes,const member,parameter passing in ile,how to use const member function in c++