A function gives the user the ability to execute a block of instructions on a set of inputs to receive a particular output. Functions are useful when the user needs to execute a set of instructions many times with different parameters. The syntax for a function is below: return_type name(parameter1, parameter2, …) { statements } Full Article…
Viewing 1 to 2 of 2 items
C++ Recursion – Palindrome
Determining if a string is a Palindrome using recursion Below is an example of how to determine if a word is a palindrome using recursion. A Palindrome is a string that could be read the same way in either direction such as racecar, mom, and even a. This tutorial expects you to understands the following. Full Article…
