CyberSlug Rules!

Beginner Programming CMPS060

Prof. Paulo Franca

Home

Syllabus

Login

Objects

Download

Staff only

Inline function:

inline void fat()
...
void newline()
...
...
void main()
{
...
fat();
...
newline();
newline();
fat();

 

Inline function (fat):
  • code is expanded right where the function is invoked.
  • code is repeated if multiple calls are issued.
  • code is executed sequentially, there is no return to calling program.

off line function (newline):

  • code is located in one piece of memory.
  • calls cause the program to branch, execute and return.