Inline Functions in C++

Similar Posts

  • The C++ Do-While Loop

    The Do-While loop is similar to the while loop. It is a conditional loop, just like the while loop, running the body of the loop while the condition is met. However, the big difference is that the do-while loop is a post-test loop. That means that the body runs at least once, and then there…

  • Recursion in Python

    We’ve seen examples of where one function calls another. For example inside of main, you see that load_data(), total(), and average() are called. Recursion is where a function, calls itself. As you can see, calling yourself is “easy” but also “dangerous”. You can easily end up in an infinite recursive loop, that is until you…

  • Break and Continue

    We’ve seen the break in a switch statement. It stops running the blocks of code, and simple exits out of the switch. In the same manner, if you use a break in a loop, it exits us from the loop prematurely (not by the loop condition). The continue keyword moves us to the end of…