Passing Variables by Value

Similar Posts

  • The String Class

    In C++ there are two ways to process strings. C-Strings which are an array of characters terminated by a null character, or the C++ style string object. The string class hides the details of how the string is stored from the user – remember one of the tasks of a class is to abstract the…

  • The C++ While Loop

    A while loop says to perform a set of operations while a condition is true. It is known as a pre-test loop, because the condition is tested before the loop is run at all, meaning the body of the loop may never run. The general form for a while loop is: Notice that the loop…

  • 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…

One Comment

Comments are closed.